2
# Bug #2397 RENAME TABLES is not blocked by
3
# FLUSH TABLES WITH READ LOCK
6
connect (con1,localhost,root,,);
7
connect (con2,localhost,root,,);
10
CREATE TABLE t1 (a int);
11
CREATE TABLE t3 (a int);
13
FLUSH TABLES WITH READ LOCK;
15
send RENAME TABLE t1 TO t2, t3 to t4;
23
# Wait for the the tables to be renamed
24
# i.e the query below succeds
25
let $query= select * from t2, t4;
26
source include/wait_for_query_to_suceed.inc;