summaryrefslogtreecommitdiff
path: root/sql/sql_reload.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2018-10-30 00:09:02 +0400
committerMonty <monty@mariadb.org>2018-12-09 22:12:26 +0200
commit7a9dfdd8d985040778881fe815cfca019fdd37f1 (patch)
tree14d7ba342917bc5288df828f95f8ce79d520592f /sql/sql_reload.cc
parent7fb9d64989ad8bb86ee47ded88dc5e2493aca4b8 (diff)
downloadmariadb-git-7a9dfdd8d985040778881fe815cfca019fdd37f1.tar.gz
Combine GLOBAL and COMMIT namespaces into BACKUP namespace.
Part of MDEV-5336 Implement LOCK FOR BACKUP Other things: - Added printing of MDL locks to DBUG.
Diffstat (limited to 'sql/sql_reload.cc')
-rw-r--r--sql/sql_reload.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_reload.cc b/sql/sql_reload.cc
index f276a6d0f21..6035800c973 100644
--- a/sql/sql_reload.cc
+++ b/sql/sql_reload.cc
@@ -308,8 +308,8 @@ bool reload_acl_and_cache(THD *thd, unsigned long long options,
with global read lock.
*/
if (thd->open_tables &&
- !thd->mdl_context.is_lock_owner(MDL_key::GLOBAL, "", "",
- MDL_INTENTION_EXCLUSIVE))
+ !thd->mdl_context.is_lock_owner(MDL_key::BACKUP, "", "",
+ MDL_BACKUP_STMT))
{
my_error(ER_TABLE_NOT_LOCKED_FOR_WRITE, MYF(0),
thd->open_tables->s->table_name.str);