Blame SOURCES/004-concurrent-fencing.patch

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