| 1 |
source include/have_debug_sync.inc; |
| 2 |
source include/have_binlog_format_row.inc; |
| 3 |
source include/master-slave.inc; |
| 4 |
|
| 5 |
connection master; |
| 6 |
create table t1 (a int); |
| 7 |
--sync_slave_with_master |
| 8 |
|
| 9 |
connection slave; |
| 10 |
SET @saved_dbug = @@GLOBAL.debug_dbug; |
| 11 |
set global debug_dbug='d,rows_log_event_before_open_table'; |
| 12 |
|
| 13 |
connection master; |
| 14 |
insert t1 values (1),(2),(3); |
| 15 |
|
| 16 |
connection slave; |
| 17 |
set debug_sync='now WAIT_FOR before_open_table'; |
| 18 |
let $a=`select id from information_schema.processlist where state='debug sync point: now'`; |
| 19 |
replace_result $a slave_sql_thread; |
| 20 |
eval kill $a; |
| 21 |
set debug_sync='now SIGNAL go_ahead_sql'; |
| 22 |
--let $slave_sql_errno= 1927 |
| 23 |
--source include/wait_for_slave_sql_error.inc |
| 24 |
let $error= query_get_value(SHOW SLAVE STATUS, Last_SQL_Error, 1); |
| 25 |
--echo Last_SQL_Error = $error |
| 26 |
SET @@GLOBAL.debug_dbug = @saved_dbug; |
| 27 |
set debug_sync='RESET'; |
| 28 |
connection master; |
| 29 |
drop table t1; |
| 30 |
|
| 31 |
connection slave; |
| 32 |
--source include/start_slave.inc |
| 33 |
let $error= query_get_value(SHOW SLAVE STATUS, Last_SQL_Error, 1); |
| 34 |
--echo Last_SQL_Error = $error |
| 35 |
|
| 36 |
source include/rpl_end.inc; |