From mboxrd@z Thu Jan 1 00:00:00 1970 From: pcaulfield@sourceware.org Date: 27 Sep 2007 09:01:31 -0000 Subject: [Cluster-devel] cluster/cman/daemon commands.c Message-ID: <20070927090131.9775.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Changes by: pcaulfield at sourceware.org 2007-09-27 09:01:30 Modified files: cman/daemon : commands.c Log message: Recalculate quorum based on the expected votes value of a new node. bz#308581 Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/commands.c.diff?cvsroot=cluster&r1=1.71&r2=1.72 --- cluster/cman/daemon/commands.c 2007/09/17 08:03:36 1.71 +++ cluster/cman/daemon/commands.c 2007/09/27 09:01:30 1.72 @@ -1771,6 +1771,11 @@ node->state = NODESTATE_AISONLY; node->flags = msg->flags; /* This will clear the BEENDOWN flag of course */ + + /* Take into account any new expected_votes value that the new node has */ + node->expected_votes = msg->expected_votes; + recalculate_quorum(0, 0); + if (node->fence_agent && msg->fence_agent[0] && strcmp(node->fence_agent, msg->fence_agent)) { free(node->fence_agent);