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 $rpl_channel_name= NAME] 13# [--let $slave_timeout= NUMBER] 14# [--let $rpl_debug= 1] 15# --source include/start_slave.inc 16# 17# Parameters: 18# $rpl_channel_name 19# If this is not '', a FOR CHANNEL '$rpl_channel_name' is added. 20# 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= start_slave.inc 29--source include/begin_include_file.inc 30 31 32if (!$rpl_debug) 33{ 34 --disable_query_log 35} 36 37if ($rpl_channel_name != '') 38{ 39 eval START SLAVE FOR CHANNEL '$rpl_channel_name'; 40} 41if ($rpl_channel_name == '') 42{ 43 START SLAVE; 44} 45 46source include/wait_for_slave_to_start.inc; 47 48 49--let $include_filename= start_slave.inc 50--source include/end_include_file.inc 51