1# ==== Purpose ==== 2# 3# Issues STOP SLAVE IO_THREAD on the current connection. Then waits 4# until the IO thread has stopped, or until a timeout is reached. 5# 6# This will fail if the slave IO thread has an error. If you expect an 7# error in the IO thread, use include/wait_for_slave_io_error.inc 8# instead. 9# 10# Please use this instead of 'STOP SLAVE IO_THREAD', to reduce the 11# risk of races in test cases. 12# 13# 14# ==== Usage ==== 15# 16# [--let $slave_timeout= NUMBER] 17# [--let $rpl_debug= 1] 18# --source include/stop_slave_io.inc 19# 20# Parameters: 21# $slave_timeout 22# See include/wait_for_slave_param.inc 23# 24# $rpl_debug 25# See include/rpl_init.inc 26 27 28--let $include_filename= stop_slave_io.inc 29--source include/begin_include_file.inc 30 31 32if (!$rpl_debug) 33{ 34 --disable_query_log 35} 36 37 38STOP SLAVE IO_THREAD; 39--source include/wait_for_slave_io_to_stop.inc 40 41 42--let $include_filename= stop_slave_io.inc 43--source include/end_include_file.inc 44