1
###################################################
4
#Purpose: To wait a brief time for slave to start
6
# 1) Fill in and setup variables
7
# 2) loop through looking for both
8
# io and sql threads to start
9
# 3) If loops too long die.
10
####################################################
18
let $io_result= query_get_value("SHOW SLAVE STATUS", Slave_IO_Running, $row_number);
19
if (`SELECT '$io_result' = 'Yes'`){
21
let $sql_result= query_get_value("SHOW SLAVE STATUS", Slave_SQL_Running, $row_number);
22
if (`SELECT '$sql_result' = 'Yes'`){
28
--echo "Failed while waiting for slave to start"
29
query_vertical SHOW SLAVE STATUS;