Blame SOURCES/004-concurrent-fencing.patch

305287
From 463eb8e36e2d2bf10a0e37938e0924ea6699f041 Mon Sep 17 00:00:00 2001
305287
From: Ken Gaillot <kgaillot@redhat.com>
305287
Date: Thu, 30 May 2019 08:37:52 -0500
305287
Subject: [PATCH] Low: libpe_status: offer compile-time option to change
305287
 concurrent-fencing default
305287
305287
We most likely want to make concurrent-fencing default to true at some point.
305287
For now, offer that possibility via a compile-time constant, for experimenting.
305287
---
305287
 lib/pengine/common.c | 8 +++++++-
305287
 lib/pengine/status.c | 3 +++
305287
 2 files changed, 10 insertions(+), 1 deletion(-)
305287
305287
diff --git a/lib/pengine/common.c b/lib/pengine/common.c
305287
index 9513633..3a283b4 100644
305287
--- a/lib/pengine/common.c
305287
+++ b/lib/pengine/common.c
305287
@@ -95,7 +95,13 @@ static pe_cluster_option pe_opts[] = {
305287
 	  "How long to wait for the STONITH action (reboot,on,off) to complete", NULL },
305287
 	{ XML_ATTR_HAVE_WATCHDOG, NULL, "boolean", NULL, "false", &check_boolean,
305287
 	  "Enable watchdog integration", "Set automatically by the cluster if SBD is detected.  User configured values are ignored." },
305287
-	{ "concurrent-fencing", NULL, "boolean", NULL, "false", &check_boolean,
305287
+	{ "concurrent-fencing", NULL, "boolean", NULL,
305287
+#ifdef DEFAULT_CONCURRENT_FENCING_TRUE
305287
+      "true",
305287
+#else
305287
+      "false",
305287
+#endif
305287
+      &check_boolean,
305287
 	  "Allow performing fencing operations in parallel", NULL },
305287
 	{ "startup-fencing", NULL, "boolean", NULL, "true", &check_boolean,
305287
 	  "STONITH unseen nodes", "Advanced Use Only!  Not using the default is very unsafe!" },
305287
diff --git a/lib/pengine/status.c b/lib/pengine/status.c
305287
index 3ccfac4..a8b0947 100644
305287
--- a/lib/pengine/status.c
305287
+++ b/lib/pengine/status.c
305287
@@ -354,6 +354,9 @@ set_working_set_defaults(pe_working_set_t * data_set)
305287
     set_bit(data_set->flags, pe_flag_stop_rsc_orphans);
305287
     set_bit(data_set->flags, pe_flag_symmetric_cluster);
305287
     set_bit(data_set->flags, pe_flag_stop_action_orphans);
305287
+#ifdef DEFAULT_CONCURRENT_FENCING_TRUE
305287
+    set_bit(data_set->flags, pe_flag_concurrent_fencing);
305287
+#endif
305287
 }
305287
 
305287
 resource_t *
305287
-- 
305287
1.8.3.1
305287