mysql_run -Q -sw -O $MYSQL $MYSQL_OPTIONS_REPL \ -e 'SHOW PROCESSLIST\G' > $tmpfile if grep -i 'Waiting for master to send event' $tmpfile >/dev/null; then ocf_log info "MySQL slave has finished reading master binary log" break fi
Is there a reason it is being called uisng show processlist. Show slave status has the same set of statuses right ?
thanks