Blame SOURCES/006-fail-count.patch
|
|
951ecb |
From cdbc6bfc8995ecc86da3fe81a463d8fc4ce1f8fd Mon Sep 17 00:00:00 2001
|
|
|
951ecb |
From: Hideo Yamauchi <renayama19661014@ybb.ne.jp>
|
|
|
951ecb |
Date: Mon, 30 Jul 2018 07:33:09 +0900
|
|
|
951ecb |
Subject: [PATCH] Mid: controld: No update by already confirmed events.
|
|
|
951ecb |
|
|
|
951ecb |
---
|
|
|
951ecb |
crmd/te_events.c | 8 ++++++++
|
|
|
951ecb |
1 file changed, 8 insertions(+)
|
|
|
951ecb |
|
|
|
951ecb |
diff --git a/crmd/te_events.c b/crmd/te_events.c
|
|
|
951ecb |
index 7b5ca2a..1f7a34c 100644
|
|
|
951ecb |
--- a/crmd/te_events.c
|
|
|
951ecb |
+++ b/crmd/te_events.c
|
|
|
951ecb |
@@ -510,6 +510,14 @@ process_graph_event(xmlNode *event, const char *event_node)
|
|
|
951ecb |
abort_transition(INFINITY, tg_restart, "Unknown event", event);
|
|
|
951ecb |
|
|
|
951ecb |
} else {
|
|
|
951ecb |
+
|
|
|
951ecb |
+ /* Actions already confirmed skip matching. */
|
|
|
951ecb |
+ /* ex. Ignoring xxx_last_0 or xxx_last_failure_0 generated by create_operation_update() in order to prevent duplicate fail-count from increasing. */
|
|
|
951ecb |
+ if (action->confirmed == TRUE) {
|
|
|
951ecb |
+ crm_log_xml_debug(event, "No update by already confirmed events :");
|
|
|
951ecb |
+ goto bail;
|
|
|
951ecb |
+ }
|
|
|
951ecb |
+
|
|
|
951ecb |
ignore_failures = safe_str_eq(
|
|
|
951ecb |
crm_meta_value(action->params, XML_OP_ATTR_ON_FAIL), "ignore");
|
|
|
951ecb |
match_graph_event(action, event, status, rc, target_rc, ignore_failures);
|
|
|
951ecb |
--
|
|
|
951ecb |
1.8.3.1
|
|
|
951ecb |
|