Susumu Yata
null+****@clear*****
Fri May 27 10:23:02 JST 2016
Susumu Yata 2016-05-27 10:23:02 +0900 (Fri, 27 May 2016) New Revision: 4f48102209d6c602ae02544253f62e10c3ec82c2 https://github.com/groonga/groonga/commit/4f48102209d6c602ae02544253f62e10c3ec82c2 Message: ii: skip posting lists by default Note that GRN_II_CURSOR_SET_MIN_ENABLE=no disables it. Modified files: lib/ii.c Modified: lib/ii.c (+4 -4) =================================================================== --- lib/ii.c 2016-05-26 23:20:58 +0900 (b5d459e) +++ lib/ii.c 2016-05-27 10:23:02 +0900 (9c691c7) @@ -71,7 +71,7 @@ # define S_IWUSR 0200 #endif /* S_IWUSR */ -static grn_bool grn_ii_cursor_set_min_enable = GRN_FALSE; +static grn_bool grn_ii_cursor_set_min_enable = GRN_TRUE; static double grn_ii_select_too_many_index_match_ratio = -1; static double grn_ii_estimate_size_for_query_reduce_ratio = 0.9; static grn_bool grn_ii_overlap_token_skip_enable = GRN_FALSE; @@ -84,10 +84,10 @@ grn_ii_init_from_env(void) grn_getenv("GRN_II_CURSOR_SET_MIN_ENABLE", grn_ii_cursor_set_min_enable_env, GRN_ENV_BUFFER_SIZE); - if (grn_ii_cursor_set_min_enable_env[0]) { - grn_ii_cursor_set_min_enable = GRN_TRUE; - } else { + if (strcmp(grn_ii_cursor_set_min_enable_env, "no") == 0) { grn_ii_cursor_set_min_enable = GRN_FALSE; + } else { + grn_ii_cursor_set_min_enable = GRN_TRUE; } } -------------- next part -------------- HTML����������������������������...Download