[Groonga-commit] groonga/groonga at 92bee9d [master] groonga: fix reported the maximum number of threads

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Wed Jul 8 14:13:11 JST 2015


Kouhei Sutou	2015-07-08 14:13:11 +0900 (Wed, 08 Jul 2015)

  New Revision: 92bee9df091ed245db09dedcd6bd93c7a3b86518
  https://github.com/groonga/groonga/commit/92bee9df091ed245db09dedcd6bd93c7a3b86518

  Message:
    groonga: fix reported the maximum number of threads

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+4 -4)
===================================================================
--- src/groonga.c    2015-07-08 11:54:57 +0900 (bed3801)
+++ src/groonga.c    2015-07-08 14:13:11 +0900 (f98ef11)
@@ -1910,7 +1910,7 @@ h_worker(void *arg)
   grn_ctx_init(ctx, 0);
   grn_ctx_use(ctx, (grn_obj *)arg);
   grn_ctx_recv_handler_set(ctx, h_output, &hc);
-  GRN_LOG(&grn_gctx, GRN_LOG_NOTICE, "thread start (%d/%d)", nfthreads, nthreads + 1);
+  GRN_LOG(&grn_gctx, GRN_LOG_NOTICE, "thread start (%d/%d)", nfthreads, nthreads);
   MUTEX_LOCK(q_mutex);
   do {
     grn_obj *msg;
@@ -1933,7 +1933,7 @@ h_worker(void *arg)
 exit :
   nthreads--;
   MUTEX_UNLOCK(q_mutex);
-  GRN_LOG(&grn_gctx, GRN_LOG_NOTICE, "thread end (%d/%d)", nfthreads, nthreads);
+  GRN_LOG(&grn_gctx, GRN_LOG_NOTICE, "thread end (%d/%d)", nfthreads, nthreads + 1);
   grn_ctx_fin(ctx);
   return GRN_THREAD_FUNC_RETURN_VALUE;
 }
@@ -1983,7 +1983,7 @@ h_server(char *path)
 static grn_thread_func_result CALLBACK
 g_worker(void *arg)
 {
-  GRN_LOG(&grn_gctx, GRN_LOG_NOTICE, "thread start (%d/%d)", nfthreads, nthreads + 1);
+  GRN_LOG(&grn_gctx, GRN_LOG_NOTICE, "thread start (%d/%d)", nfthreads, nthreads);
   MUTEX_LOCK(q_mutex);
   do {
     grn_ctx *ctx;
@@ -2040,7 +2040,7 @@ g_worker(void *arg)
 exit :
   nthreads--;
   MUTEX_UNLOCK(q_mutex);
-  GRN_LOG(&grn_gctx, GRN_LOG_NOTICE, "thread end (%d/%d)", nfthreads, nthreads);
+  GRN_LOG(&grn_gctx, GRN_LOG_NOTICE, "thread end (%d/%d)", nfthreads, nthreads + 1);
   return GRN_THREAD_FUNC_RETURN_VALUE;
 }
 
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る