summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2001-06-01 17:44:02 -0600
committerunknown <sasha@mysql.sashanet.com>2001-06-01 17:44:02 -0600
commit2c15fdb55678044dbb270206b446b0ec68fa1d56 (patch)
treeaa9f91ee682b47f19a55290023841f1654429fa1 /mysql-test
parente587f1cbe6ba41c96beb022f2f2036094ce184a2 (diff)
parentd405cfb9966f881c435d4bbd0ecacf4b7cc27c35 (diff)
downloadmariadb-git-2c15fdb55678044dbb270206b446b0ec68fa1d56.tar.gz
Merge mysql.sashanet.com:/home/sasha/src/bk/mysql
into mysql.sashanet.com:/home/sasha/src/bk/mysql-4.0
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/flush.result2
-rw-r--r--mysql-test/t/flush.test10
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;