summaryrefslogtreecommitdiff
path: root/sql/sql_plugin.cc
diff options
context:
space:
mode:
authorunknown <serg@janus.mylan>2007-04-18 20:46:26 +0200
committerunknown <serg@janus.mylan>2007-04-18 20:46:26 +0200
commit9bafb1a7ed01682219b8be7c631966e087e1a189 (patch)
tree885268fa05204ed8b3c01a900e367614cae2fe5b /sql/sql_plugin.cc
parentb3ff0acc29ec56922d42fa2d4ecf5af3551cbfab (diff)
downloadmariadb-git-9bafb1a7ed01682219b8be7c631966e087e1a189.tar.gz
comment
Diffstat (limited to 'sql/sql_plugin.cc')
-rw-r--r--sql/sql_plugin.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc
index c7ca879e9b4..2f62b39d51c 100644
--- a/sql/sql_plugin.cc
+++ b/sql/sql_plugin.cc
@@ -92,17 +92,20 @@ static int cur_plugin_info_interface_version[MYSQL_MAX_PLUGIN_TYPE_NUM]=
MYSQL_INFORMATION_SCHEMA_INTERFACE_VERSION
};
+static bool initialized= 0;
+
+/*
+ A mutex LOCK_plugin must be acquired before accessing the
+ following variables/structures.
+ We are always manipulating ref count, so a rwlock here is unneccessary.
+*/
+static pthread_mutex_t LOCK_plugin;
static DYNAMIC_ARRAY plugin_dl_array;
static DYNAMIC_ARRAY plugin_array;
static HASH plugin_hash[MYSQL_MAX_PLUGIN_TYPE_NUM];
-/* we are always manipulating ref count, so a rwlock is unneccessary */
-static pthread_mutex_t LOCK_plugin;
-static bool initialized= 0;
static bool reap_needed= false;
-
static int plugin_array_version=0;
-
/*
write-lock on LOCK_system_variables_hash is required before modifying
the following variables/structures