From 056bab0880544d91ea67d18fe8db65b4f6625482 Mon Sep 17 00:00:00 2001 From: Sergey Vojtovich Date: Fri, 16 Jun 2017 15:47:46 +0400 Subject: MDEV-12620 - set lock_wait_timeout = 1;flush tables with read lock; lock not released after timeout Release GRL if FLUSH TABLES phase failed. --- mysql-test/r/mdl_sync.result | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'mysql-test/r/mdl_sync.result') diff --git a/mysql-test/r/mdl_sync.result b/mysql-test/r/mdl_sync.result index 206ad509e37..8b6f96033c9 100644 --- a/mysql-test/r/mdl_sync.result +++ b/mysql-test/r/mdl_sync.result @@ -3100,3 +3100,18 @@ a # Connection default DROP TABLE m1, t1, t2; SET DEBUG_SYNC= 'RESET'; +# +# MDEV-12620 - set lock_wait_timeout = 1;flush tables with read lock; +# lock not released after timeout +# +CREATE TABLE t1(a INT) ENGINE=InnoDB; +SET debug_sync='open_tables_after_open_and_process_table SIGNAL ready WAIT_FOR go'; +SELECT * FROM t1; +SET debug_sync='now WAIT_FOR ready'; +SET lock_wait_timeout=1; +FLUSH TABLES WITH READ LOCK; +ERROR HY000: Lock wait timeout exceeded; try restarting transaction +SET debug_sync='now SIGNAL go'; +a +SET debug_sync='RESET'; +DROP TABLE t1; -- cgit v1.2.1