This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: RHEL53 - cman: Fix inconsistent state if a node leaves/joinsquickly


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=2bac6a6e1a24cd56f08bb89299296bf2a9a6ea58
Commit:        2bac6a6e1a24cd56f08bb89299296bf2a9a6ea58
Parent:        ac64d03b9f75cff824fabe3ce40177f972936d5f
Author:        Christine Caulfield <ccaulfie@redhat.com>
AuthorDate:    Wed Dec 3 10:46:20 2008 +0000
Committer:     Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Mon Jul 13 13:03:02 2009 +0100

cman: Fix inconsistent state if a node leaves/joins quickly

This bug was fixed in STABLE2 some time ago.

bz#510510

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
 cman/daemon/commands.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cman/daemon/commands.c b/cman/daemon/commands.c
index 945268a..46ab3fd 100644
--- a/cman/daemon/commands.c
+++ b/cman/daemon/commands.c
@@ -1979,7 +1979,7 @@ void add_ais_node(int nodeid, uint64_t incarnation, int total_members)
 		node->name = strdup(tempname);
 	}
 
-	if (node->state == NODESTATE_DEAD) {
+	if (node->state == NODESTATE_DEAD || node->state == NODESTATE_LEAVING) {
 		gettimeofday(&node->join_time, NULL);
 		node->incarnation = incarnation;
 		node->state = NODESTATE_MEMBER;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]