summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorKristofer Pettersson <kristofer.pettersson@sun.com>2010-04-20 20:19:20 +0200
committerKristofer Pettersson <kristofer.pettersson@sun.com>2010-04-20 20:19:20 +0200
commit4859951a900b687f55f8ca3ac786bbec200fcc90 (patch)
tree638bb5730b6e24bfd79563474024d0651d68d17b /sql
parent3a626d1027eb0348c954b0138c1f550cec86a424 (diff)
parent8b16a2a55b841e13af7bdac5be5f94bb3a4fe9f3 (diff)
downloadmariadb-git-4859951a900b687f55f8ca3ac786bbec200fcc90.tar.gz
automerge
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_ndbcluster.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index 9fdb8b628ca..9c26105546d 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -7316,13 +7316,6 @@ static int ndbcluster_init(void *p)
if (ndbcluster_inited)
DBUG_RETURN(FALSE);
- /*
- 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.
- */
- pthread_mutex_unlock(&LOCK_plugin);
-
pthread_mutex_init(&ndbcluster_mutex,MY_MUTEX_INIT_FAST);
pthread_mutex_init(&LOCK_ndb_util_thread, MY_MUTEX_INIT_FAST);
pthread_cond_init(&COND_ndb_util_thread, NULL);
@@ -7463,8 +7456,6 @@ static int ndbcluster_init(void *p)
goto ndbcluster_init_error;
}
- pthread_mutex_lock(&LOCK_plugin);
-
ndbcluster_inited= 1;
DBUG_RETURN(FALSE);
@@ -7477,8 +7468,6 @@ ndbcluster_init_error:
g_ndb_cluster_connection= NULL;
ndbcluster_hton->state= SHOW_OPTION_DISABLED; // If we couldn't use handler
- pthread_mutex_lock(&LOCK_plugin);
-
DBUG_RETURN(TRUE);
}