mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fixed main.flush_read_lock sporadic failure
With MDEV-19384 fixed FTWRL releases HANDLER locks early, which allows concurrent threads to go. Test case may get stuck on FTWRL waiting for LOCK TABLES.
This commit is contained in:
@@ -1034,6 +1034,7 @@ bool Global_read_lock::lock_global_read_lock(THD *thd)
|
||||
if another thread is trying to simultaneous drop the table
|
||||
*/
|
||||
mysql_ha_cleanup_no_free(thd);
|
||||
DEBUG_SYNC(thd, "ftwrl_before_lock");
|
||||
|
||||
DBUG_ASSERT(! thd->mdl_context.is_lock_owner(MDL_key::BACKUP, "", "",
|
||||
MDL_BACKUP_FTWRL1));
|
||||
|
||||
Reference in New Issue
Block a user