diff options
author | Dmitry Shulga <Dmitry.Shulga@oracle.com> | 2011-06-24 00:02:58 +0700 |
---|---|---|
committer | Dmitry Shulga <Dmitry.Shulga@oracle.com> | 2011-06-24 00:02:58 +0700 |
commit | a6e52ad5c07dc5c9df79f9bef6212116c9b34de8 (patch) | |
tree | f8c73e20154892449146f9b034ae2b7c5210d353 /sql/sql_db.cc | |
parent | f2a5309418ef7cd5fd4d3f100a569a69a78d35d0 (diff) | |
parent | 07056eb984573b483576d45d7b8c259ad66dcd66 (diff) | |
download | mariadb-git-a6e52ad5c07dc5c9df79f9bef6212116c9b34de8.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.cc | 3 |
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) |