1include/master-slave.inc
2[connection master]
3connection master;
4create table t1 (a int);
5connection slave;
6connection slave;
7SET @saved_dbug = @@GLOBAL.debug_dbug;
8set global debug_dbug='d,rows_log_event_before_open_table';
9connection master;
10insert t1 values (1),(2),(3);
11connection slave;
12set debug_sync='now WAIT_FOR before_open_table';
13kill slave_sql_thread;
14set debug_sync='now SIGNAL go_ahead_sql';
15include/wait_for_slave_sql_error.inc [errno=1927]
16Last_SQL_Error = Error executing row event: 'Connection was killed'
17SET @@GLOBAL.debug_dbug = @saved_dbug;
18set debug_sync='RESET';
19connection master;
20drop table t1;
21connection slave;
22include/start_slave.inc
23Last_SQL_Error =
24include/rpl_end.inc
25