diff options
author | sasha@mysql.sashanet.com <> | 2001-06-01 17:43:32 -0600 |
---|---|---|
committer | sasha@mysql.sashanet.com <> | 2001-06-01 17:43:32 -0600 |
commit | e09d554ed6430bfc212a33eeeeebe03943abad63 (patch) | |
tree | 58fce061036a635d2710361cf4f687b6827d8f1f | |
parent | 23e031f2002f25ca4621bd801810a83a12ccf8bc (diff) | |
download | mariadb-git-e09d554ed6430bfc212a33eeeeebe03943abad63.tar.gz |
test if dirty close releases global read lock held by a thread
-rw-r--r-- | mysql-test/r/flush.result | 2 | ||||
-rw-r--r-- | mysql-test/t/flush.test | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/r/flush.result b/mysql-test/r/flush.result index 76862936a16..e34f4f67195 100644 --- a/mysql-test/r/flush.result +++ b/mysql-test/r/flush.result @@ -1,2 +1,4 @@ n 3 +n +345 diff --git a/mysql-test/t/flush.test b/mysql-test/t/flush.test index 94586519c66..b7293307605 100644 --- a/mysql-test/t/flush.test +++ b/mysql-test/t/flush.test @@ -32,3 +32,13 @@ connection con2; unlock tables; connection con1; reap; + +# test if dirty close releases global read lock +connection con1; +create table t1 (n int); +flush tables with read lock; +dirty_close con1; +connection con2; +insert into t1 values (345); +select * from t1; +drop table t1; |