[Groonga-commit] groonga/groonga at 1fcbd99 [master] plugin: remove too much locks

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Mar 30 17:21:41 JST 2016


Kouhei Sutou	2016-03-30 17:21:41 +0900 (Wed, 30 Mar 2016)

  New Revision: 1fcbd999e034fc0793acd7a599fad4d814646a0b
  https://github.com/groonga/groonga/commit/1fcbd999e034fc0793acd7a599fad4d814646a0b

  Message:
    plugin: remove too much locks

  Modified files:
    lib/plugin.c

  Modified: lib/plugin.c (+0 -6)
===================================================================
--- lib/plugin.c    2016-03-30 17:15:16 +0900 (45933f2)
+++ lib/plugin.c    2016-03-30 17:21:41 +0900 (503f136)
@@ -154,10 +154,7 @@ grn_plugin_call_init(grn_ctx *ctx, grn_id id)
   grn_plugin *plugin;
   int size;
 
-  CRITICAL_SECTION_ENTER(grn_plugins_lock);
   size = grn_hash_get_value(&grn_plugins_ctx, grn_plugins, id, &plugin);
-  CRITICAL_SECTION_LEAVE(grn_plugins_lock);
-
   if (size == 0) {
     return GRN_INVALID_ARGUMENT;
   }
@@ -230,10 +227,7 @@ grn_plugin_call_fin(grn_ctx *ctx, grn_id id)
   grn_plugin *plugin;
   int size;
 
-  CRITICAL_SECTION_ENTER(grn_plugins_lock);
   size = grn_hash_get_value(&grn_plugins_ctx, grn_plugins, id, &plugin);
-  CRITICAL_SECTION_LEAVE(grn_plugins_lock);
-
   if (size == 0) {
     return GRN_INVALID_ARGUMENT;
   }
-------------- next part --------------
HTML����������������������������...
下载 



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