Permalink
Browse files

Return error in added code

  • Loading branch information...
1 parent ca67de2 commit fec3494393854da4a2a427e62d1b0188e48ff965 @y-trudeau committed Nov 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 heartbeat/mysql
View
@@ -892,7 +892,7 @@ mysql_monitor() {
# Check if this instance is configured as a slave, and if so
# check slave status
- master_resource=`$CRM resource list | grep p_mysql | awk '{print $3}'`
+ 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

0 comments on commit fec3494

Please sign in to comment.