Browse files

Low: pgsql: fix changing pgsql-status when using maintenance-mode

  • Loading branch information...
1 parent 0f8b5ee commit 404d205636ad02e09ddffdb9710dd660b8171c6b @t-matsuo t-matsuo committed Feb 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 heartbeat/pgsql
View
2 heartbeat/pgsql
@@ -898,7 +898,7 @@ pgsql_replication_monitor() {
# I can't get master node name from $OCF_RESKEY_CRM_meta_notify_master_uname on monitor,
# so I will get master node name using crm_mon -n
- crm_mon -n1 | tr -d "\t" | tr -d " " | grep -q "^${RESOURCE_NAME}:.*Master$"
+ crm_mon -n1 | tr -d "\t" | tr -d " " | grep -q "^${RESOURCE_NAME}:.*)Master"
if [ $? -ne 0 ] ; then
# If I am Slave and Master is not exist
ocf_log info "Master does not exist."

0 comments on commit 404d205

Please sign in to comment.