Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
4859951a
Commit
4859951a
authored
Apr 20, 2010
by
Kristofer Pettersson
Browse files
Options
Browse Files
Download
Plain Diff
automerge
parents
3a626d10
8b16a2a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+0
-11
No files found.
sql/ha_ndbcluster.cc
View file @
4859951a
...
@@ -7316,13 +7316,6 @@ static int ndbcluster_init(void *p)
...
@@ -7316,13 +7316,6 @@ static int ndbcluster_init(void *p)
if
(
ndbcluster_inited
)
if
(
ndbcluster_inited
)
DBUG_RETURN
(
FALSE
);
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
(
&
ndbcluster_mutex
,
MY_MUTEX_INIT_FAST
);
pthread_mutex_init
(
&
LOCK_ndb_util_thread
,
MY_MUTEX_INIT_FAST
);
pthread_mutex_init
(
&
LOCK_ndb_util_thread
,
MY_MUTEX_INIT_FAST
);
pthread_cond_init
(
&
COND_ndb_util_thread
,
NULL
);
pthread_cond_init
(
&
COND_ndb_util_thread
,
NULL
);
...
@@ -7463,8 +7456,6 @@ static int ndbcluster_init(void *p)
...
@@ -7463,8 +7456,6 @@ static int ndbcluster_init(void *p)
goto
ndbcluster_init_error
;
goto
ndbcluster_init_error
;
}
}
pthread_mutex_lock
(
&
LOCK_plugin
);
ndbcluster_inited
=
1
;
ndbcluster_inited
=
1
;
DBUG_RETURN
(
FALSE
);
DBUG_RETURN
(
FALSE
);
...
@@ -7477,8 +7468,6 @@ ndbcluster_init_error:
...
@@ -7477,8 +7468,6 @@ ndbcluster_init_error:
g_ndb_cluster_connection
=
NULL
;
g_ndb_cluster_connection
=
NULL
;
ndbcluster_hton
->
state
=
SHOW_OPTION_DISABLED
;
// If we couldn't use handler
ndbcluster_hton
->
state
=
SHOW_OPTION_DISABLED
;
// If we couldn't use handler
pthread_mutex_lock
(
&
LOCK_plugin
);
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment