1
# TODO: Only run this if we have privilege to do flush table
7
# Should work in embedded server after mysqltest is fixed
8
-- source include/not_embedded.inc
10
drop table if exists t1,t2;
12
create table t1 (a int not null auto_increment primary key);
13
insert into t1 values(0);
15
# Test for with read lock + flush
22
# Test for with 2 read lock in different thread + flush
25
connect (locker,localhost,root,,test);
39
# Test for with a write lock and a waiting read lock + flush
43
send lock table t1 read;
54
# Test for with a read lock and a waiting write lock + flush
58
send lock table t1 write;
73
# Bug #11934 Two sequential FLUSH TABLES WITH READ LOCK hangs client
75
FLUSH TABLES WITH READ LOCK ;
76
FLUSH TABLES WITH READ LOCK ;