mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Making FLUSH TABLES WITH READ LOCK killable while it's waiting for running commits to finish. Normally this step is not long but it's still nice to be killable
(especially in case of bug like BUG#6732 "FLUSH TABLES WITH READ LOCK + COMMIT makes next FLUSH...LOCK hang forever"). sql/lock.cc: making FLUSH TABLES WITH READ LOCK killable while it's waiting for running commits to finish sql/mysql_priv.h: prototype change sql/sql_parse.cc: now it's possible that make_global_read_lock_block_commit fails (killed)
This commit is contained in:
@@ -1096,7 +1096,7 @@ void unlock_global_read_lock(THD *thd);
|
||||
bool wait_if_global_read_lock(THD *thd, bool abort_on_refresh,
|
||||
bool is_not_commit);
|
||||
void start_waiting_global_read_lock(THD *thd);
|
||||
void make_global_read_lock_block_commit(THD *thd);
|
||||
bool make_global_read_lock_block_commit(THD *thd);
|
||||
|
||||
/* Lock based on name */
|
||||
int lock_and_wait_for_table_name(THD *thd, TABLE_LIST *table_list);
|
||||
|
||||
Reference in New Issue
Block a user