null+****@clear*****
null+****@clear*****
2012年 8月 6日 (月) 15:50:25 JST
Kouhei Sutou 2012-08-06 15:50:25 +0900 (Mon, 06 Aug 2012) New Revision: b952d2603336a2ed97ddd05f2f686e74a5df4d6c https://github.com/groonga/groonga/commit/b952d2603336a2ed97ddd05f2f686e74a5df4d6c Log: select: fix a bug that the last 1 byte for cache key is ignored Modified files: lib/proc.c Modified: lib/proc.c (+2 -1) =================================================================== --- lib/proc.c 2012-08-03 11:42:27 +0900 (80e92c2) +++ lib/proc.c 2012-08-06 15:50:25 +0900 (b6dfc8f) @@ -273,7 +273,8 @@ grn_select(grn_ctx *ctx, const char *table, unsigned int table_len, char cache_key[GRN_TABLE_MAX_KEY_SIZE]; uint32_t cache_key_size = table_len + 1 + match_columns_len + 1 + query_len + 1 + filter_len + 1 + scorer_len + 1 + sortby_len + 1 + output_columns_len + 1 + - drilldown_len + 1 + drilldown_sortby_len + 1 + drilldown_output_columns_len + + drilldown_len + 1 + drilldown_sortby_len + 1 + + drilldown_output_columns_len + 1 + match_escalation_threshold_len + 1 + query_expansion_len + 1 + sizeof(grn_content_type) + sizeof(int) * 4; long long int threshold, original_threshold = 0; -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... 下載