2 # Takes the flag as an argument:
3 # -- let $io_thd_injection_fault_flag=+d,fault_injection_new_file_rotate_event
4 # -- source include/io_thd_fault_injection.inc
7 SET @old_debug=@@global.debug;
9 -- source include/stop_slave.inc
11 -- eval SET GLOBAL debug=
"+d,$io_thd_injection_fault_flag"
13 START SLAVE io_thread;
14 -- source include/wait_for_slave_io_error.inc
16 -- eval SET GLOBAL debug=
"-d,$io_thd_injection_fault_flag"
17 SET GLOBAL debug=@old_debug;
19 # restart because slave is in bad shape
20 --let $rpl_server_number= 2
21 --source include/rpl_restart_server.inc