Blame SOURCES/bz1934651-db2-add-PRIMARY-REMOTE_CATCHUP_PENDING-CONNECTED.patch

27b8ba
From dd5394180267c652d0928db8c5508d9977893fe5 Mon Sep 17 00:00:00 2001
27b8ba
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
27b8ba
Date: Thu, 18 Mar 2021 16:23:10 +0100
27b8ba
Subject: [PATCH] db2: add PRIMARY/REMOTE_CATCHUP_PENDING/CONNECTED status to
27b8ba
 promote-check
27b8ba
27b8ba
---
27b8ba
 heartbeat/db2 | 2 +-
27b8ba
 1 file changed, 1 insertion(+), 1 deletion(-)
27b8ba
27b8ba
diff --git a/heartbeat/db2 b/heartbeat/db2
27b8ba
index a57fd2bb6..459136cbd 100755
27b8ba
--- a/heartbeat/db2
27b8ba
+++ b/heartbeat/db2
27b8ba
@@ -767,7 +767,7 @@ db2_promote() {
27b8ba
             return $OCF_SUCCESS
27b8ba
             ;;
27b8ba
 
27b8ba
-            PRIMARY/PEER/*|PRIMARY/REMOTE_CATCHUP/*|Primary/Peer)
27b8ba
+            PRIMARY/PEER/*|PRIMARY/REMOTE_CATCHUP/*|PRIMARY/REMOTE_CATCHUP_PENDING/CONNECTED|Primary/Peer)
27b8ba
             # nothing to do, only update pacemaker's view
27b8ba
             echo MASTER > $STATE_FILE
27b8ba
             return $OCF_SUCCESS