summaryrefslogtreecommitdiff
path: root/sql/sql_db.cc
diff options
context:
space:
mode:
authorDmitry Shulga <Dmitry.Shulga@oracle.com>2011-06-24 00:02:58 +0700
committerDmitry Shulga <Dmitry.Shulga@oracle.com>2011-06-24 00:02:58 +0700
commite42a24e58c45c02d5c7561efde094769fdd57164 (patch)
treef8c73e20154892449146f9b034ae2b7c5210d353 /sql/sql_db.cc
parent7545f86670f6599dacaf934eb2932338529169b9 (diff)
parentbc7af1757939f1ec3c389da73176c7c68a8bafd5 (diff)
downloadmariadb-git-e42a24e58c45c02d5c7561efde094769fdd57164.tar.gz
Manual merge of patch for bug#11756013 from mysql-5.1 tree.
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r--sql/sql_db.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc
index 035e992db1f..6f04f7ad989 100644
--- a/sql/sql_db.cc
+++ b/sql/sql_db.cc
@@ -39,6 +39,7 @@
#ifdef __WIN__
#include <direct.h>
#endif
+#include "debug_sync.h"
#define MAX_DROP_TABLE_Q_LEN 1024
@@ -1536,6 +1537,8 @@ bool mysql_change_db(THD *thd, const LEX_STRING *new_db_name, bool force_switch)
}
#endif
+ DEBUG_SYNC(thd, "before_db_dir_check");
+
if (check_db_dir_existence(new_db_file_name.str))
{
if (force_switch)