summaryrefslogtreecommitdiff
path: root/sql/sql_db.cc
diff options
context:
space:
mode:
authorserg@serg.mylan <>2004-08-20 21:56:29 +0200
committerserg@serg.mylan <>2004-08-20 21:56:29 +0200
commit050bf6a89f14c9870e54751fa37b0016bb4714c9 (patch)
treed3bc4a6cf5270e88d92f8b8cc86572fd34a9405c /sql/sql_db.cc
parentb267ce4bb42c5a104e35090b69f5f1a41ffec5c2 (diff)
parent02e93b5758f6b2f06365ee711a223e9e579c82e3 (diff)
downloadmariadb-git-050bf6a89f14c9870e54751fa37b0016bb4714c9.tar.gz
merged
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r--sql/sql_db.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc
index 3b12cbe3422..f786e7476ac 100644
--- a/sql/sql_db.cc
+++ b/sql/sql_db.cc
@@ -396,7 +396,7 @@ int mysql_create_db(THD *thd, char *db, HA_CREATE_INFO *create_info,
VOID(pthread_mutex_lock(&LOCK_mysql_create_db));
// do not create database if another thread is holding read lock
- if (wait_if_global_read_lock(thd,0))
+ if (wait_if_global_read_lock(thd, 0, 1))
{
error= -1;
goto exit2;
@@ -565,7 +565,7 @@ int mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
VOID(pthread_mutex_lock(&LOCK_mysql_create_db));
// do not drop database if another thread is holding read lock
- if (wait_if_global_read_lock(thd,0))
+ if (wait_if_global_read_lock(thd, 0, 1))
{
error= -1;
goto exit2;