Permalink
Browse files

added condition on meta_role

  • Loading branch information...
y-trudeau committed Nov 1, 2012
1 parent 86d6c74 commit 3fb6c936d9a3b8e60dc31fc6b33d6d77fc5e5459
Showing with 2 additions and 2 deletions.
  1. +2 −2 heartbeat/mysql
View
@@ -474,7 +474,7 @@ get_slave_info() {
slave_io=`parse_slave_info Slave_IO_Running $tmpfile`
last_errno=`parse_slave_info Last_Errno $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
# Instance produced an empty "SHOW SLAVE STATUS" output --
# instance is not a slave
@@ -875,7 +875,7 @@ mysql_monitor() {
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 slave status
- if is_slave; then
+ if [ is_slave -o "$OCF_RESKEY_CRM_meta_role" = "Slave" ]; then
check_slave
fi

0 comments on commit 3fb6c93

Please sign in to comment.