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

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