db2: fix OCF_SUCESS name in db2_notify

This commit is contained in:
bixiaoyan 2024-04-18 17:03:45 +08:00
parent 1be3229355
commit df611b5203
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 76150e245d541a6c51d6817999c9dcb40b66dbdd Mon Sep 17 00:00:00 2001
From: pepadelic <162310096+pepadelic@users.noreply.github.com>
Date: Mon, 15 Apr 2024 15:01:13 +0200
Subject: [PATCH] db2: fix OCF_SUCESS name in db2_notify (#1933)
fix OCF_SUCESS to OCF_SUCCESS in db2_notify
---
heartbeat/db2 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/heartbeat/db2 b/heartbeat/db2
index 95447ab6..1cd66f15 100755
--- a/heartbeat/db2
+++ b/heartbeat/db2
@@ -848,7 +848,7 @@ db2_notify() {
# only interested in pre-start
[ $OCF_RESKEY_CRM_meta_notify_type = pre \
- -a $OCF_RESKEY_CRM_meta_notify_operation = start ] || return $OCF_SUCESS
+ -a $OCF_RESKEY_CRM_meta_notify_operation = start ] || return $OCF_SUCCESS
# gets FIRST_ACTIVE_LOG
db2_get_cfg $dblist || return $?
--
2.25.1

View File

@ -1,7 +1,7 @@
Name: resource-agents
Summary: Open Source HA Reusable Cluster Resource Scripts
Version: 4.13.0
Release: 16
Release: 17
License: GPLv2+ and LGPLv2+
URL: https://github.com/ClusterLabs/resource-agents
Source0: https://github.com/ClusterLabs/resource-agents/archive/v%{version}.tar.gz
@ -21,6 +21,7 @@ Patch0012: nfsserver-fix-server-scope-functionality-for-both-po.patch
Patch0013: Fix-openstack-info-Ensure-no-newlines-in-openstack.patch
Patch0014: portblock-remove-write-to-tcp_tw_recycle.patch
Patch0015: findifsh-fix-corner-cases.patch
Patch0016: fix-OCF_SUCESS-name-in-db2_notify.patch
Obsoletes: heartbeat-resources <= %{version}
Provides: heartbeat-resources = %{version}
BuildRequires: automake autoconf pkgconfig gcc perl-interpreter perl-generators python3-devel
@ -118,6 +119,9 @@ export CFLAGS="$(echo '%{optflags}')"
%{_mandir}/man8/{ocf-tester.8*,ldirectord.8*}
%changelog
* Thu Apr 18 2024 bixiaoyan <bixiaoyan@kylinos.cn> - 4.13.0-17
- db2: fix OCF_SUCESS name in db2_notify
* Wed Apr 17 2024 bixiaoyan <bixiaoyan@kylinos.cn> - 4.13.0-16
- findif.sh: fix corner cases