diff options
author | vva@eagle.mysql.r18.ru <> | 2004-04-01 22:47:09 +0500 |
---|---|---|
committer | vva@eagle.mysql.r18.ru <> | 2004-04-01 22:47:09 +0500 |
commit | 7a580ce991dca7d0cf950c61b2b8d7796641788a (patch) | |
tree | 97f888ec2a178d85bbfa05fcfe5f91a1282adfbb /mysql-test/r/rename.result | |
parent | 3bfbe6e0dd88d190c0f97720f6ee3ad80d113410 (diff) | |
download | mariadb-git-7a580ce991dca7d0cf950c61b2b8d7796641788a.tar.gz |
fixed
BUG #2397 "RENAME TABLES is not blocked by FLUSH TABLES WITH READ LOCK"
(added waiting for global_read_lock in mysql_rename_tables)
Diffstat (limited to 'mysql-test/r/rename.result')
-rw-r--r-- | mysql-test/r/rename.result | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/rename.result b/mysql-test/r/rename.result index e422fbe49c1..9bcf1bc7f97 100644 --- a/mysql-test/r/rename.result +++ b/mysql-test/r/rename.result @@ -39,3 +39,17 @@ select * from t3; drop table if exists t1,t2,t3,t4; Warnings: Note 1051 Unknown table 't4' +CREATE TABLE t1 (a int); +CREATE TABLE t3 (a int); +FLUSH TABLES WITH READ LOCK; + RENAME TABLE t1 TO t2, t3 to t4; +show tables; +Tables_in_test +t1 +t3 +UNLOCK TABLES; +show tables; +Tables_in_test +t2 +t4 +drop table t2, t4; |