Re: [PATCH] votequorum: two_node should enable wait_for_all by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 25/01/12 06:58 +0100, Fabio M. Di Nitto wrote:
From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx>

This avoids fencing races at startup of a cluster.

Reviewed-by: Angus Salkeld <asalkeld@xxxxxxxxxx>


It is still possible to override WFA by explicitly setting
wait_for_all: 0

Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx>
---
exec/votequorum.c |    6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/exec/votequorum.c b/exec/votequorum.c
index 51fe8b1..c809626 100644
--- a/exec/votequorum.c
+++ b/exec/votequorum.c
@@ -748,6 +748,12 @@ static int votequorum_readconfig_static(void)

	log_printf(LOGSYS_LEVEL_DEBUG, "Reading static configuration");

+	icmap_get_uint8("quorum.two_node", &two_node);
+
+	if (two_node) {
+		wait_for_all = 1;
+	}
+
	icmap_get_uint8("quorum.wait_for_all", &wait_for_all);
	icmap_get_uint8("quorum.auto_tie_breaker", &auto_tie_breaker);
	icmap_get_uint8("quorum.last_man_standing", &last_man_standing);
--
1.7.7.5

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss
_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux