summaryrefslogtreecommitdiff
path: root/mysql-test/t/mdl_sync.test
diff options
context:
space:
mode:
authorJon Olav Hauglid <jon.hauglid@oracle.com>2010-08-10 13:16:44 +0200
committerJon Olav Hauglid <jon.hauglid@oracle.com>2010-08-10 13:16:44 +0200
commitcff7f022d8d940584f4be1f831b40fda4cbd4ec2 (patch)
tree10bccf2012cc36e5166499fedcd9a1b059a14d45 /mysql-test/t/mdl_sync.test
parent523066987d6150347b3a56d403187312816cab8d (diff)
downloadmariadb-git-cff7f022d8d940584f4be1f831b40fda4cbd4ec2.tar.gz
Followup for Bug #54360 Deadlock DROP/ALTER/CREATE DATABASE
with open HANDLER This patch changes the code for table renames to not drop metadata locks. Since table renames are done as a part of ALTER DATABASE ... UPGRADE, dropping metadata locks in the middle of execution can result in wrong binlog order since it means that no locks are held when the binlog is written to. The RENAME TABLE statement is unafffected since it auto commits and therefore already drops metadata locks at the end of execution. This patch also reverts the regression test for Bug#48940 back to its original version. The test was temporarily changed due to the issue mentioned above.
Diffstat (limited to 'mysql-test/t/mdl_sync.test')
-rw-r--r--mysql-test/t/mdl_sync.test8
1 files changed, 6 insertions, 2 deletions
diff --git a/mysql-test/t/mdl_sync.test b/mysql-test/t/mdl_sync.test
index 8f33a788c67..0c3ba8a75f2 100644
--- a/mysql-test/t/mdl_sync.test
+++ b/mysql-test/t/mdl_sync.test
@@ -4041,7 +4041,9 @@ connection default;
--echo # Connection con2
connection con2;
--echo # Reaping: ALTER DATABASE db1 DEFAULT CHARACTER SET utf8
---error 1,1 # Wrong error pending followup patch for bug#54360
+# Error 1 is from ALTER DATABASE when the database does not exist.
+# Listing the error twice to prevent result diffences based on filename.
+--error 1,1
--reap
@@ -4153,7 +4155,9 @@ connection default;
--echo # Connection con2
connection con2;
--echo # Reaping: RENAME TABLE test.t2 TO db1.t2
---error 7, 7 # Wrong error pending followup patch for bug#54360
+# Error 7 is from RENAME TABLE where the target database does not exist.
+# Listing the error twice to prevent result diffences based on filename.
+--error 7, 7
--reap
DROP TABLE test.t2;