summaryrefslogtreecommitdiff
path: root/mysql-test/t/rename.test
diff options
context:
space:
mode:
authorunknown <kroki@mysql.com>2006-05-06 09:41:24 +0400
committerunknown <kroki@mysql.com>2006-05-06 09:41:24 +0400
commit9f606932f72ba80e03fd828f25f6e22c908a77b6 (patch)
treec66ba707a4de137ada301dd685b7ee6b2de8aab6 /mysql-test/t/rename.test
parente5d610843032b071dcadd01c01ad5c2b04558c81 (diff)
downloadmariadb-git-9f606932f72ba80e03fd828f25f6e22c908a77b6.tar.gz
Fix race condition of concurrent RENAME and SHOW TABLES which caused
random test failures. mysql-test/t/rename.test: Fix race condition and add cleanup code.
Diffstat (limited to 'mysql-test/t/rename.test')
-rw-r--r--mysql-test/t/rename.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/mysql-test/t/rename.test b/mysql-test/t/rename.test
index 5caecef176e..86e4b6eed0a 100644
--- a/mysql-test/t/rename.test
+++ b/mysql-test/t/rename.test
@@ -61,9 +61,15 @@ connection con2;
sleep 1;
show tables;
UNLOCK TABLES;
-sleep 1;
+connection con1;
+reap;
+connection con2;
show tables;
drop table t2, t4;
+disconnect con2;
+disconnect con1;
+connection default;
+
# End of 4.1 tests