diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2017-06-16 15:47:46 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2017-06-16 15:47:46 +0400 |
commit | 056bab0880544d91ea67d18fe8db65b4f6625482 (patch) | |
tree | 18d728d74bc13c5bc52c4b7543e346b0b22753b8 /mysql-test/r/mdl_sync.result | |
parent | 58f87a41bd8de7370cc05c41977fadc685826c9e (diff) | |
download | mariadb-git-056bab0880544d91ea67d18fe8db65b4f6625482.tar.gz |
MDEV-12620 - set lock_wait_timeout = 1;flush tables with read lock;
lock not released after timeout
Release GRL if FLUSH TABLES phase failed.
Diffstat (limited to 'mysql-test/r/mdl_sync.result')
-rw-r--r-- | mysql-test/r/mdl_sync.result | 15 |
1 files changed, 15 insertions, 0 deletions
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; |