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
2d33bb5c
Commit
2d33bb5c
authored
Jun 14, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb: add missing LOCK_open
parent
764e4e5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+2
-0
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_binlog.cc
+1
-0
No files found.
sql/ha_ndbcluster.cc
View file @
2d33bb5c
...
...
@@ -5848,6 +5848,7 @@ int ndbcluster_drop_database_impl(const char *path)
while
((
tabname
=
it
++
))
{
tablename_to_filename
(
tabname
,
tmp
,
FN_REFLEN
-
(
tmp
-
full_path
)
-
1
);
VOID
(
pthread_mutex_lock
(
&
LOCK_open
));
if
(
ha_ndbcluster
::
delete_table
(
0
,
ndb
,
full_path
,
dbname
,
tabname
))
{
const
NdbError
err
=
dict
->
getNdbError
();
...
...
@@ -5857,6 +5858,7 @@ int ndbcluster_drop_database_impl(const char *path)
ret
=
ndb_to_mysql_error
(
&
err
);
}
}
VOID
(
pthread_mutex_unlock
(
&
LOCK_open
));
}
DBUG_RETURN
(
ret
);
}
...
...
sql/ha_ndbcluster_binlog.cc
View file @
2d33bb5c
...
...
@@ -286,6 +286,7 @@ ndbcluster_binlog_open_table(THD *thd, NDB_SHARE *share,
int
error
;
DBUG_ENTER
(
"ndbcluster_binlog_open_table"
);
safe_mutex_assert_owner
(
&
LOCK_open
);
init_tmp_table_share
(
table_share
,
share
->
db
,
0
,
share
->
table_name
,
share
->
key
);
if
((
error
=
open_table_def
(
thd
,
table_share
,
0
)))
...
...
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