Permalink
Browse files

fix ms/state detection

  • Loading branch information...
1 parent 4685082 commit 0711296558308da9e21213b37a620ee5808580da @michael-dev committed with mbr Jan 29, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 heartbeat/redis
View
@@ -220,7 +220,7 @@ redis_cmd() {
$OCF_RESKEY_client_binary -p "$port" -a "$password" "$@"
return $?
else
- ocf_run $OCF_RESKEY_client_binary -p "$port" -a "$password" "$@"
+ ocf_run -q $OCF_RESKEY_client_binary -p "$port" -a "$password" "$@"
return $?
fi
}
@@ -233,7 +233,7 @@ read_ms_status() {
local should_be_slave
tmp=$(mktemp -p $HA_RSCTMP)
- redis_cmd 1 info >$tmp
+ redis_cmd 0 info >$tmp
if [ $? -ne 0 ]; then
ocf_log info "Could not determine master/slave status";
rm -f $tmp
@@ -414,7 +414,7 @@ redis_start() {
rc=0
if [ -e "$appendfilename" ]; then
ocf_log info "Redis is using $appendfilename as appendfilename"
- ocf_run $OCF_RESKEY_aof_check_binary "$appendfilename"
+ ocf_run -q $OCF_RESKEY_aof_check_binary "$appendfilename"
rc=$?
fi
if [ $rc -ne 0 ]; then

0 comments on commit 0711296

Please sign in to comment.