1# ==== Purpose ==== 2# 3# Issues START SLAVE on the current connection. Then waits until both 4# the IO and SQL threads have started, or until a timeout is reached. 5# 6# Please use this instead of 'START SLAVE', to reduce the risk of test 7# case bugs. 8# 9# 10# ==== Usage ==== 11# 12# [--let $slave_timeout= NUMBER] 13# [--let $rpl_debug= 1] 14# --source include/start_slave.inc 15# 16# Parameters: 17# $slave_timeout 18# See include/wait_for_slave_param.inc 19# 20# $rpl_debug 21# See include/rpl_init.inc 22 23 24--let $include_filename= start_slave.inc 25--source include/begin_include_file.inc 26 27 28if (!$rpl_debug) 29{ 30 --disable_query_log 31} 32 33 34START SLAVE; 35source include/wait_for_slave_to_start.inc; 36 37 38--let $include_filename= start_slave.inc 39--source include/end_include_file.inc 40