1# Save the initial number of concurrent sessions
2connect  con1,localhost,root,,;
3connect  con2,localhost,root,,;
4connection con1;
5CREATE TABLE t1 (a INT) ENGINE=innodb;
6RESET MASTER;
7SET AUTOCOMMIT=0;
8SELECT 1;
91
101
11connection con2;
12FLUSH TABLES WITH READ LOCK;
13include/show_binlog_events.inc
14connection con1;
15INSERT INTO t1 VALUES (1);
16connection con2;
17include/show_binlog_events.inc
18UNLOCK TABLES;
19connection con1;
20DROP TABLE t1;
21SET AUTOCOMMIT=1;
22create table t1 (a int) engine=innodb;
23connection con1;
24flush tables with read lock;
25connection con2;
26begin;
27insert into t1 values (1);;
28connection con1;
29unlock tables;
30connection con2;
31commit;
32drop table t1;
33connection default;
34disconnect con1;
35disconnect con2;
36# Wait till all disconnects are completed
37