Blame SOURCES/bz2029704-2-db2-fixes.patch

811adb
From 75eaf06eea8957aa3941823955d1c8fa7933ab1d Mon Sep 17 00:00:00 2001
811adb
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
811adb
Date: Wed, 23 Feb 2022 16:32:21 +0100
811adb
Subject: [PATCH] db2: only warn when notify isnt set, and use
811adb
 ocf_local_nodename() to get node name
811adb
811adb
---
811adb
 heartbeat/db2 | 4 ++--
811adb
 1 file changed, 2 insertions(+), 2 deletions(-)
811adb
811adb
diff --git a/heartbeat/db2 b/heartbeat/db2
811adb
index fa2a45a5d..ea24d33fc 100755
811adb
--- a/heartbeat/db2
811adb
+++ b/heartbeat/db2
811adb
@@ -267,7 +267,7 @@ db2_fal_attrib() {
811adb
 
811adb
     case "$2" in
811adb
         set)
811adb
-        me=$(uname -n)
811adb
+        me=$(ocf_local_nodename)
811adb
 
811adb
         # loop over all member nodes and set attribute
811adb
         crm_node -l |
811adb
@@ -284,7 +284,7 @@ db2_fal_attrib() {
811adb
         get)
811adb
         crm_attribute -l forever -n $attr -G --quiet 2>&1
811adb
         rc=$?
811adb
-        if [ $rc != 0 ]
811adb
+        if ! ocf_is_true "$OCF_RESKEY_CRM_meta_notify" && [ $rc != 0 ]
811adb
         then
811adb
             ocf_log warn "DB2 instance $instance($db2node/$db: can't retrieve attribute $attr, are you sure notifications are enabled ?"
811adb
         fi