summaryrefslogtreecommitdiff
path: root/mysql-test/t/flush_table.test
diff options
context:
space:
mode:
authorunknown <evgen@moonbone.local>2005-08-03 02:01:27 +0400
committerunknown <evgen@moonbone.local>2005-08-03 02:01:27 +0400
commit1920d0fc65425b48e9f1c4784e1bac4fe3c946fb (patch)
treee2a9588b41b4c49006fecb6c2137b5b620396a8f /mysql-test/t/flush_table.test
parenta0e2b86452f83298fc0c00510194923ae2459dea (diff)
downloadmariadb-git-1920d0fc65425b48e9f1c4784e1bac4fe3c946fb.tar.gz
Fix bug #11934 Two sequential FLUSH TABLES WITH READ LOCK hangs client
Bug was introduced by cset 1.1659.14.1. Before it server was silently ignoring that lock can't be acquired because it already acquired. This patch makes make_global_read_lock_block_commit() return without error if lock already acquired. mysql-test/t/flush_table.test: Test case for bug#11934 FLUSH TABLES WITH READ LOCK hangs client. mysql-test/r/flush_table.result: Test case for bug#11934 FLUSH TABLES WITH READ LOCK hangs client. sql/lock.cc: Fix bug #11934 Two sequential FLUSH TABLES WITH READ LOCK hangs client. Make make_global_read_lock_block_commit() return without error if lock already acquired.
Diffstat (limited to 'mysql-test/t/flush_table.test')
-rw-r--r--mysql-test/t/flush_table.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/flush_table.test b/mysql-test/t/flush_table.test
index 0330582bc34..e46b67ad3d0 100644
--- a/mysql-test/t/flush_table.test
+++ b/mysql-test/t/flush_table.test
@@ -73,4 +73,11 @@ handler t1 read next limit 1;
handler t1 close;
drop table t1;
+#
+# Bug #11934 Two sequential FLUSH TABLES WITH READ LOCK hangs client
+#
+FLUSH TABLES WITH READ LOCK ;
+FLUSH TABLES WITH READ LOCK ;
+UNLOCK TABLES;
+
# End of 4.1 tests