Blame SOURCES/bz1521019-db2-fix-hadr-promote-when-master-failed.patch

1ee2dd
From 051743955c4f1f5fe412875afba94edd2839008c Mon Sep 17 00:00:00 2001
1ee2dd
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
1ee2dd
Date: Wed, 22 Nov 2017 12:25:41 +0100
1ee2dd
Subject: [PATCH] db2: fix HADR promote when master failed
1ee2dd
1ee2dd
---
1ee2dd
 heartbeat/db2 | 4 ++--
1ee2dd
 1 file changed, 2 insertions(+), 2 deletions(-)
1ee2dd
1ee2dd
diff --git a/heartbeat/db2 b/heartbeat/db2
1ee2dd
index 63de31582..b67363ec5 100755
1ee2dd
--- a/heartbeat/db2
1ee2dd
+++ b/heartbeat/db2
1ee2dd
@@ -617,7 +617,7 @@ db2_instance_status() {
1ee2dd
     if [ $pscount -ge 4 ]; then
1ee2dd
         return $OCF_SUCCESS;
1ee2dd
     elif [ $pscount -ge 1 ]; then
1ee2dd
-        return $OCF_GENERIC_ERR
1ee2dd
+        return $OCF_ERR_GENERIC
1ee2dd
     fi
1ee2dd
     return $OCF_NOT_RUNNING
1ee2dd
 }
1ee2dd
@@ -767,7 +767,7 @@ db2_promote() {
1ee2dd
             # must take over 
1ee2dd
             ;;
1ee2dd
 
1ee2dd
-            STANDBY/PEER/DISCONNECTED|Standby/DisconnectedPeer)
1ee2dd
+            STANDBY/PEER/DISCONNECTED|STANDBY/DISCONNECTED_PEER/DISCONNECTED|Standby/DisconnectedPeer)
1ee2dd
             # must take over forced 
1ee2dd
             force="by force peer window only"
1ee2dd
             ;;