mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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.
This commit is contained in:
@ -9191,12 +9191,12 @@ bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db,
|
||||
}
|
||||
|
||||
/*
|
||||
Global intention exclusive lock must have been already acquired when
|
||||
table to be altered was open, so there is no need to do it here.
|
||||
Protection against global read lock must have been acquired when table
|
||||
to be altered was being opened.
|
||||
*/
|
||||
DBUG_ASSERT(thd->mdl_context.is_lock_owner(MDL_key::GLOBAL,
|
||||
DBUG_ASSERT(thd->mdl_context.is_lock_owner(MDL_key::BACKUP,
|
||||
"", "",
|
||||
MDL_INTENTION_EXCLUSIVE));
|
||||
MDL_BACKUP_STMT));
|
||||
|
||||
if (thd->mdl_context.acquire_locks(&mdl_requests,
|
||||
thd->variables.lock_wait_timeout))
|
||||
|
Reference in New Issue
Block a user