1# ==== Purpose ==== 2# 3# Waits the SQL thread of the current connection has started, or until 4# a timeout is reached. 5# 6# ==== Usage ==== 7# 8# [--let $slave_timeout= NUMBER] 9# [--let $rpl_debug= 1] 10# --source include/wait_for_slave_sql_to_start.inc 11# 12# Parameters: 13# $slave_timeout 14# See include/wait_for_slave_param.inc 15# 16# $rpl_debug 17# See include/rpl_init.inc 18 19 20--let $include_filename= wait_for_slave_sql_to_start.inc 21--source include/begin_include_file.inc 22 23 24let $slave_param= Slave_SQL_Running; 25let $slave_param_value= Yes; 26 27# Unfortunately, the slave sql thread sets Slave_SQL_Running=Yes 28# *before* it clears Last_SQL_Errno. So we have to allow errors in 29# the SQL thread here. 30 31#--let $slave_error_param= Last_SQL_Errno 32source include/wait_for_slave_param.inc; 33#--let $slave_error_param= 34 35 36--let $include_filename= wait_for_slave_sql_to_start.inc 37--source include/end_include_file.inc 38