public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL53 - cman: Fix inconsistent state if a node leaves/joins quickly
@ 2009-07-13 12:04 Christine Caulfield
  0 siblings, 0 replies; only message in thread
From: Christine Caulfield @ 2009-07-13 12:04 UTC (permalink / raw)
  To: cluster-cvs-relay

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-13 12:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-13 12:04 cluster: RHEL53 - cman: Fix inconsistent state if a node leaves/joins quickly Christine Caulfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).