1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-12620 - set lock_wait_timeout = 1;flush tables with read lock;

lock not released after timeout

Release GRL if FLUSH TABLES phase failed.
This commit is contained in:
Sergey Vojtovich
2017-06-16 15:47:46 +04:00
parent 58f87a41bd
commit 056bab0880
3 changed files with 41 additions and 1 deletions

View File

@ -253,7 +253,8 @@ bool reload_acl_and_cache(THD *thd, unsigned long long options,
NOTE: my_error() has been already called by reopen_tables() within
close_cached_tables().
*/
result= 1;
thd->global_read_lock.unlock_global_read_lock(thd);
return 1;
}
if (thd->global_read_lock.make_global_read_lock_block_commit(thd)) // Killed