Skip to content

Commit

Permalink
added condition on meta_role
Browse files Browse the repository at this point in the history
  • Loading branch information
Yves Trudeau committed Nov 4, 2012
1 parent 86d6c74 commit 3fb6c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions heartbeat/mysql
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ get_slave_info() {
slave_io=`parse_slave_info Slave_IO_Running $tmpfile` slave_io=`parse_slave_info Slave_IO_Running $tmpfile`
last_errno=`parse_slave_info Last_Errno $tmpfile` last_errno=`parse_slave_info Last_Errno $tmpfile`
secs_behind=`parse_slave_info Seconds_Behind_Master $tmpfile` secs_behind=`parse_slave_info Seconds_Behind_Master $tmpfile`
ocf_log debug "MySQL instance running as a replication slave" ocf_log debug "MySQL instance has a non empty slave status"
else else
# Instance produced an empty "SHOW SLAVE STATUS" output -- # Instance produced an empty "SHOW SLAVE STATUS" output --
# instance is not a slave # instance is not a slave
Expand Down Expand Up @@ -875,7 +875,7 @@ mysql_monitor() {
if [ $OCF_CHECK_LEVEL -gt 0 -a -n "$OCF_RESKEY_test_table" ]; then if [ $OCF_CHECK_LEVEL -gt 0 -a -n "$OCF_RESKEY_test_table" ]; then
# Check if this instance is configured as a slave, and if so # Check if this instance is configured as a slave, and if so
# check slave status # check slave status
if is_slave; then if [ is_slave -o "$OCF_RESKEY_CRM_meta_role" = "Slave" ]; then
check_slave check_slave
fi fi


Expand Down

0 comments on commit 3fb6c93

Please sign in to comment.