[Groonga-commit] groonga/groonga at d72c26a [master] Use local grn_ctx

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 27 12:25:55 JST 2018


Kouhei Sutou	2018-03-27 12:25:55 +0900 (Tue, 27 Mar 2018)

  New Revision: d72c26ae3bcf07edf58f49513d15b0647dbe5ff1
  https://github.com/groonga/groonga/commit/d72c26ae3bcf07edf58f49513d15b0647dbe5ff1

  Message:
    Use local grn_ctx

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+2 -2)
===================================================================
--- src/groonga.c    2018-03-27 12:23:46 +0900 (14cf6aed9)
+++ src/groonga.c    2018-03-27 12:25:55 +0900 (b49cdb876)
@@ -2422,7 +2422,7 @@ h_worker(void *arg)
   grn_ctx_use(ctx, (grn_obj *)arg);
   grn_ctx_recv_handler_set(ctx, h_output, &hc);
   MUTEX_LOCK_ENSURE(ctx, q_mutex);
-  GRN_LOG(&grn_gctx, GRN_LOG_NOTICE, "thread start (%u/%u)",
+  GRN_LOG(ctx, GRN_LOG_NOTICE, "thread start (%u/%u)",
           n_floating_threads, n_running_threads);
   while (n_running_threads <= max_n_floating_threads &&
          grn_gctx.stat != GRN_CTX_QUIT) {
@@ -2452,7 +2452,7 @@ h_worker(void *arg)
   }
 exit :
   n_running_threads--;
-  GRN_LOG(&grn_gctx, GRN_LOG_NOTICE, "thread end (%u/%u)",
+  GRN_LOG(ctx, GRN_LOG_NOTICE, "thread end (%u/%u)",
           n_floating_threads, n_running_threads);
   if (grn_gctx.stat == GRN_CTX_QUIT && running_event_loop) {
     break_accept_event_loop(ctx);
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180327/43fc20da/attachment-0001.htm 



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