Re: [PATCH 5/5] votequorum: honor onwire node flags change

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

 



Reviewed-by: Jan Friesse <jfriesse@xxxxxxxxxx>

Fabio M. Di Nitto napsal(a):
From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx>

internal flags were not propagated correctly in the node status

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

diff --git a/exec/votequorum.c b/exec/votequorum.c
index a194d1e..afef5cf 100644
--- a/exec/votequorum.c
+++ b/exec/votequorum.c
@@ -1008,6 +1008,7 @@ static void message_handler_req_exec_votequorum_nodeinfo (
 	struct cluster_node *node;
 	int old_votes;
 	int old_expected;
+	uint16_t old_flags;
 	nodestate_t old_state;
 	int new_node = 0;
 	int allow_downgrade = 0;
@@ -1030,9 +1031,11 @@ static void message_handler_req_exec_votequorum_nodeinfo (
 	old_votes = node->votes;
 	old_expected = node->expected_votes;
 	old_state = node->state;
+	old_flags = node->flags;
/* Update node state */
 	node->votes = req_exec_quorum_nodeinfo->votes;
+	node->flags = req_exec_quorum_nodeinfo->flags;
 	node->state = NODESTATE_MEMBER;
if ((!cluster_is_quorate) &&
@@ -1067,6 +1070,7 @@ static void message_handler_req_exec_votequorum_nodeinfo (
req_exec_quorum_nodeinfo->first_trans || old_votes != node->votes ||
 	    old_expected != node->expected_votes ||
+	    old_flags != node->flags ||
 	    old_state != node->state) {
 		recalculate_quorum(allow_downgrade, 0);
 	}

_______________________________________________
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