summaryrefslogtreecommitdiff
path: root/mysql-test/t/rename.test
diff options
context:
space:
mode:
authorunknown <anozdrin/alik@alik.>2006-11-07 13:50:00 +0300
committerunknown <anozdrin/alik@alik.>2006-11-07 13:50:00 +0300
commit871378bc697c59f87b99c64d243136948b1f9d6f (patch)
tree42fb1db881900588ca6d4b0cce2a7d825736863a /mysql-test/t/rename.test
parente5bd94b2d4fd6937a0f5ff53a295fe14a83ccaef (diff)
parent024a1781a6310383c1e352d483e7a701d564d051 (diff)
downloadmariadb-git-871378bc697c59f87b99c64d243136948b1f9d6f.tar.gz
Merge alik.:/mnt/raid/alik/MySQL/devel/5.0
into alik.:/mnt/raid/alik/MySQL/devel/5.0-rt configure.in: Auto merged include/my_time.h: Auto merged mysql-test/r/func_time.result: Auto merged mysql-test/r/rename.result: Auto merged mysql-test/t/func_time.test: Auto merged mysql-test/t/im_daemon_life_cycle.imtest: Auto merged mysql-test/t/rename.test: Auto merged sql/item_timefunc.cc: Auto merged sql-common/my_time.c: Auto merged sql/time.cc: Auto merged
Diffstat (limited to 'mysql-test/t/rename.test')
-rw-r--r--mysql-test/t/rename.test11
1 files changed, 8 insertions, 3 deletions
diff --git a/mysql-test/t/rename.test b/mysql-test/t/rename.test
index 61f01dd97b5..09a02344203 100644
--- a/mysql-test/t/rename.test
+++ b/mysql-test/t/rename.test
@@ -43,8 +43,8 @@ select * from t3;
drop table if exists t1,t2,t3,t4;
#
-# Test-case for Bug #2397 RENAME TABLES is not blocked by
-# FLUSH TABLES WITH READ LOCK
+# Bug #2397 RENAME TABLES is not blocked by
+# FLUSH TABLES WITH READ LOCK
#
connect (con1,localhost,root,,);
@@ -58,12 +58,17 @@ FLUSH TABLES WITH READ LOCK;
connection con1;
send RENAME TABLE t1 TO t2, t3 to t4;
connection con2;
-sleep 1;
show tables;
UNLOCK TABLES;
connection con1;
reap;
connection con2;
+
+# Wait for the the tables to be renamed
+# i.e the query below succeds
+let $query= select * from t2, t4;
+source include/wait_for_query_to_suceed.inc;
+
show tables;
drop table t2, t4;