Kouhei Sutou
null+****@clear*****
Mon Jan 6 16:29:08 JST 2014
Kouhei Sutou 2014-01-06 16:29:08 +0900 (Mon, 06 Jan 2014) New Revision: 8820ea1e73cb5c4c18f94f7489ad8367c137f64f https://github.com/groonga/groonga/commit/8820ea1e73cb5c4c18f94f7489ad8367c137f64f Message: Enable skipping same value put for ja by default You can disable the feature by the following environment variable: GRN_JA_SKIP_SAME_VALUE_PUT=no Modified files: lib/ctx.c lib/store.c Modified: lib/ctx.c (+2 -2) =================================================================== --- lib/ctx.c 2014-01-06 13:44:49 +0900 (411a3af) +++ lib/ctx.c 2014-01-06 16:29:08 +0900 (93ae008) @@ -1225,8 +1225,8 @@ check_grn_ja_skip_same_value_put(grn_ctx *ctx) grn_ja_skip_same_value_put_env = getenv("GRN_JA_SKIP_SAME_VALUE_PUT"); if (grn_ja_skip_same_value_put_env && - strcmp(grn_ja_skip_same_value_put_env, "yes") == 0) { - grn_ja_skip_same_value_put = GRN_TRUE; + strcmp(grn_ja_skip_same_value_put_env, "no") == 0) { + grn_ja_skip_same_value_put = GRN_FALSE; } } Modified: lib/store.c (+1 -1) =================================================================== --- lib/store.c 2014-01-06 13:44:49 +0900 (82988ed) +++ lib/store.c 2014-01-06 16:29:08 +0900 (64a0e64) @@ -308,7 +308,7 @@ struct grn_ja_header { #define SEGMENTS_GINFO_ON(ja,seg,width) (SEGMENTS_AT(ja,seg) = SEG_GINFO|(width)) #define SEGMENTS_OFF(ja,seg) (SEGMENTS_AT(ja,seg) = 0) -grn_bool grn_ja_skip_same_value_put = GRN_FALSE; +grn_bool grn_ja_skip_same_value_put = GRN_TRUE; static grn_ja * _grn_ja_create(grn_ctx *ctx, grn_ja *ja, const char *path, -------------- next part -------------- HTML����������������������������...Download