[Groonga-commit] groonga/groonga at 56f0d76 [master] Use the global grn_ctx

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 27 12:26:01 JST 2018


Kouhei Sutou	2018-03-27 12:26:01 +0900 (Tue, 27 Mar 2018)

  New Revision: 56f0d763375f9bce42030d65d114e28526923367
  https://github.com/groonga/groonga/commit/56f0d763375f9bce42030d65d114e28526923367

  Message:
    Use the global grn_ctx

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+1 -1)
===================================================================
--- src/groonga.c    2018-03-27 12:25:55 +0900 (b49cdb876)
+++ src/groonga.c    2018-03-27 12:26:01 +0900 (35a1076e1)
@@ -2514,7 +2514,7 @@ h_server(char *path)
 static grn_thread_func_result CALLBACK
 g_worker(void *arg)
 {
-  MUTEX_LOCK_ENSURE(NULL, q_mutex);
+  MUTEX_LOCK_ENSURE(&grn_gctx, q_mutex);
   GRN_LOG(&grn_gctx, GRN_LOG_NOTICE, "thread start (%u/%u)",
           n_floating_threads, n_running_threads);
   while (n_running_threads <= max_n_floating_threads &&
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180327/0bdcc8d5/attachment.htm 



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