summaryrefslogtreecommitdiff
path: root/mysql-test/t/mdl_sync.test
diff options
context:
space:
mode:
authorJon Olav Hauglid <jon.hauglid@sun.com>2009-12-10 15:09:56 +0100
committerJon Olav Hauglid <jon.hauglid@sun.com>2009-12-10 15:09:56 +0100
commit94154c9592e8a4b1eb9ee19529ab22f1f07a3e26 (patch)
tree0d2b36302950e0d9f841ff7ce7477c283aa3fb47 /mysql-test/t/mdl_sync.test
parent3d062adf2526fa7f92ed15dfb9525e4d9ba5e9f2 (diff)
downloadmariadb-git-94154c9592e8a4b1eb9ee19529ab22f1f07a3e26.tar.gz
Backport of revno: 3690
Postfix for Bug#48210 FLUSH TABLES WITH READ LOCK deadlocks against concurrent CREATE PROCEDURE Rewrote the second test to use DROP PROCEDURE instead of CREATE USER as CREATE USER does not work with embedded server.
Diffstat (limited to 'mysql-test/t/mdl_sync.test')
-rw-r--r--mysql-test/t/mdl_sync.test10
1 files changed, 4 insertions, 6 deletions
diff --git a/mysql-test/t/mdl_sync.test b/mysql-test/t/mdl_sync.test
index 9422c67cb6f..e3aceaa05fa 100644
--- a/mysql-test/t/mdl_sync.test
+++ b/mysql-test/t/mdl_sync.test
@@ -509,21 +509,20 @@ UNLOCK TABLES;
--echo # Connection 1
connection default;
-DROP PROCEDURE p1;
SET DEBUG_SYNC= 'RESET';
---echo # Test 2: CREATE USER
+--echo # Test 2: DROP PROCEDURE
connection default;
---echo # Start CREATE USER and open the grant tables
+--echo # Start DROP PROCEDURE and open tables
SET DEBUG_SYNC= 'after_open_table_mdl_shared SIGNAL table_opened WAIT_FOR grlwait';
---send CREATE USER 'user_1@localhost'
+--send DROP PROCEDURE p1
--echo # Connection 2
connection con2;
SET DEBUG_SYNC= 'now WAIT_FOR table_opened';
--echo # Check that FLUSH must wait to get the GRL
---echo # and let CREATE USER continue
+--echo # and let DROP PROCEDURE continue
SET DEBUG_SYNC= 'wait_lock_global_read_lock SIGNAL grlwait';
--send FLUSH TABLES WITH READ LOCK
@@ -538,7 +537,6 @@ UNLOCK TABLES;
--echo # Connection 1
connection default;
-DROP USER 'user_1@localhost';
SET DEBUG_SYNC= 'RESET';
disconnect con2;