mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-20867 - Perform careful review of "Server crashes with BACKUP STAGE and FLUSH TABLE table_name"
Reverted original patch (c2e0a0b
).
For consistency with "LOCK TABLE <table_name> READ" and "FLUSH TABLES
WITH READ LOCK", which are forbidden under "BACKUP STAGE", forbid "FLUSH
TABLE <table_name> FOR EXPORT" and "FLUSH TABLE <table_name> WITH READ
LOCK" as well.
It'd allow consistent fixes for problems like MDEV-18643.
This commit is contained in:
@ -5580,6 +5580,7 @@ void THD::leave_locked_tables_mode()
|
||||
{
|
||||
if (locked_tables_mode == LTM_LOCK_TABLES)
|
||||
{
|
||||
DBUG_ASSERT(current_backup_stage == BACKUP_FINISHED);
|
||||
/*
|
||||
When leaving LOCK TABLES mode we have to change the duration of most
|
||||
of the metadata locks being held, except for HANDLER and GRL locks,
|
||||
|
Reference in New Issue
Block a user