1
# Kill a connection while flush table with read lock is occuring.
2
connect (con1, localhost, root,,);
3
connect (con2, localhost, root,,);
5
CREATE TABLE CONNECTION_ID (id int);
6
CREATE TABLE t1_680028 (a serial);
8
# Jump to connection one and save our ID.
10
insert into CONNECTION_ID VALUES (CONNECTION_ID());
13
EXECUTE "SELECT @id:=id FROM CONNECTION_ID LIMIT 1" WITH NO RETURN;
16
FLUSH TABLES WITH READ LOCK;
19
SEND select * from t1_680028 for update;
25
SELECT GLOBAL_READ_LOCK();
27
SELECT GLOBAL_READ_LOCK();
29
DROP TABLE CONNECTION_ID;