Susumu Yata
null+****@clear*****
Fri May 27 10:25:18 JST 2016
Susumu Yata 2016-05-27 10:25:18 +0900 (Fri, 27 May 2016) New Revision: 3393cef86b1a97efb6c4c14874e6bc3168813e55 https://github.com/groonga/groonga/commit/3393cef86b1a97efb6c4c14874e6bc3168813e55 Message: ii: split chunks in static indexing by default Note that GRN_INDEX_CHUNK_SPLIT_ENABLE=no disables it. Modified files: lib/index_column.c Modified: lib/index_column.c (+4 -4) =================================================================== --- lib/index_column.c 2016-05-27 10:23:02 +0900 (f43caf5) +++ lib/index_column.c 2016-05-27 10:25:18 +0900 (9838eb5) @@ -23,7 +23,7 @@ #include <string.h> static uint64_t grn_index_sparsity = 10; -static grn_bool grn_index_chunk_split_enable = GRN_FALSE; +static grn_bool grn_index_chunk_split_enable = GRN_TRUE; void grn_index_column_init_from_env(void) @@ -48,10 +48,10 @@ grn_index_column_init_from_env(void) grn_getenv("GRN_INDEX_CHUNK_SPLIT_ENABLE", grn_index_chunk_split_enable_env, GRN_ENV_BUFFER_SIZE); - if (grn_index_chunk_split_enable_env[0]) { - grn_index_chunk_split_enable = GRN_TRUE; - } else { + if (strcmp(grn_index_chunk_split_enable_env, "no") == 0) { grn_index_chunk_split_enable = GRN_FALSE; + } else { + grn_index_chunk_split_enable = GRN_TRUE; } } } -------------- next part -------------- HTML����������������������������... ダウンロード