[Groonga-commit] groonga/groonga at 81e44e5 [master] groonga: remove needless +1

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jul 24 18:57:28 JST 2015


Kouhei Sutou	2015-07-24 18:57:28 +0900 (Fri, 24 Jul 2015)

  New Revision: 81e44e5c54e188a98f4263c033636df74e7d1c79
  https://github.com/groonga/groonga/commit/81e44e5c54e188a98f4263c033636df74e7d1c79

  Message:
    groonga: remove needless +1
    
    It should show "the number of running threads".

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+2 -2)
===================================================================
--- src/groonga.c    2015-07-24 17:53:08 +0900 (f98ef11)
+++ src/groonga.c    2015-07-24 18:57:28 +0900 (8ecf8a2)
@@ -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 + 1);
+  GRN_LOG(&grn_gctx, GRN_LOG_NOTICE, "thread end (%d/%d)", nfthreads, nthreads);
   grn_ctx_fin(ctx);
   return GRN_THREAD_FUNC_RETURN_VALUE;
 }
@@ -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 + 1);
+  GRN_LOG(&grn_gctx, GRN_LOG_NOTICE, "thread end (%d/%d)", nfthreads, nthreads);
   return GRN_THREAD_FUNC_RETURN_VALUE;
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index