mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Added syntax and implementation for BACKUP STAGE's
Part of MDEV-5336 Implement LOCK FOR BACKUP - Changed check of Global_only_lock to also include BACKUP lock. - We store latest MDL_BACKUP_DDL lock in thd->mdl_backup_ticket to be able to downgrade lock during copy_data_between_tables()
This commit is contained in:
@ -547,7 +547,7 @@ bool open_and_lock_for_insert_delayed(THD *thd, TABLE_LIST *table_list)
|
||||
If this goes ok, the tickets are cloned and added to the list of granted
|
||||
locks held by the handler thread.
|
||||
*/
|
||||
if (thd->global_read_lock.can_acquire_protection())
|
||||
if (thd->has_read_only_protection())
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
protection_request.init(MDL_key::BACKUP, "", "", MDL_BACKUP_DML,
|
||||
|
Reference in New Issue
Block a user