Kouhei Sutou
null+****@clear*****
Tue Aug 18 19:59:14 JST 2015
Kouhei Sutou 2015-08-18 19:59:14 +0900 (Tue, 18 Aug 2015) New Revision: a6347a8991cb4eeb5cf300f5f27a11a47ab655b5 https://github.com/groonga/groonga/commit/a6347a8991cb4eeb5cf300f5f27a11a47ab655b5 Message: Use 1 for the number of threads in standalone mode Modified files: src/groonga.c Modified: src/groonga.c (+5 -1) =================================================================== --- src/groonga.c 2015-08-18 19:58:52 +0900 (2b4ac32) +++ src/groonga.c 2015-08-18 19:59:14 +0900 (50cf20b) @@ -3029,7 +3029,11 @@ main(int argc, char **argv) } max_nfthreads = value; } else { - max_nfthreads = default_max_n_threads; + if (flags & FLAG_MODE_ALONE) { + max_nfthreads = 1; + } else { + max_nfthreads = default_max_n_threads; + } } grn_thread_set_get_count_func(groonga_get_thread_count, NULL); -------------- next part -------------- HTML����������������������������... Télécharger