diff options
author | Sergey Vojtovich <svoj@sun.com> | 2010-01-19 17:30:55 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@sun.com> | 2010-01-19 17:30:55 +0400 |
commit | 667b5944a7a28dcefdd725d360b6631bd74aedc8 (patch) | |
tree | 667b5c726df9ea2c6435bb9a13fad521165d32ec /sql/ha_ndbcluster.cc | |
parent | a6165accb3279fe64b672fa0eeaa30ef12cf6557 (diff) | |
parent | 9130563708cbdbb488e5361af79eb9f4b9dab0ea (diff) | |
download | mariadb-git-667b5944a7a28dcefdd725d360b6631bd74aedc8.tar.gz |
Merge backport of WL#3771 with mysql-next-mr.
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r-- | sql/ha_ndbcluster.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index b254d5d387c..63716e8960e 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -7466,7 +7466,6 @@ static int connect_callback() } extern int ndb_dictionary_is_mysqld; -extern mysql_mutex_t LOCK_plugin; #ifdef HAVE_PSI_INTERFACE @@ -7559,13 +7558,6 @@ static int ndbcluster_init(void *p) init_ndbcluster_psi_keys(); #endif - /* - Below we create new THD's. They'll need LOCK_plugin, but it's taken now by - plugin initialization code. Release it to avoid deadlocks. It's safe, as - there're no threads that may concurrently access plugin control structures. - */ - mysql_mutex_unlock(&LOCK_plugin); - mysql_mutex_init(key_ndbcluster_mutex, &ndbcluster_mutex, MY_MUTEX_INIT_FAST); mysql_mutex_init(key_LOCK_ndb_util_thread, @@ -7722,8 +7714,6 @@ static int ndbcluster_init(void *p) goto ndbcluster_init_error; } - mysql_mutex_lock(&LOCK_plugin); - ndbcluster_inited= 1; DBUG_RETURN(FALSE); @@ -7736,8 +7726,6 @@ ndbcluster_init_error: g_ndb_cluster_connection= NULL; ndbcluster_hton->state= SHOW_OPTION_DISABLED; // If we couldn't use handler - mysql_mutex_lock(&LOCK_plugin); - DBUG_RETURN(TRUE); } |