Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Corrected inverse logic

  • Loading branch information...
commit b3381d6aaf1077f222d82523b48ab3080855c9f1 1 parent fec3494
@y-trudeau authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  heartbeat/mysql
View
2  heartbeat/mysql
@@ -895,7 +895,7 @@ mysql_monitor() {
master_resource=`$CRM resource list | grep p_mysql | awk '{print $3}' | head -n 1`
master_exists=`$CRM resource list $master_resource | egrep -c 'Master$'`
# Are we currently having a master?
- if [ "$master_exists" -eq "0" ]; then
+ if [ "$master_exists" -ne "0" ]; then
is_slave
rc=$?
if [ $rc -eq 0 -o "$OCF_RESKEY_CRM_meta_role" = "Slave" ]; then
Please sign in to comment.
Something went wrong with that request. Please try again.