From 93fc1272882d9b9bbe329bd960700873397a1df9 Mon Sep 17 00:00:00 2001 From: Christine Caulfield Date: Thu, 29 Jan 2009 14:21:05 +0000 Subject: [PATCH] Fix votequorum_getinfo returning the wrong value for expected_votes git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1752 fd59a12c-fef9-0310-b244-a6a79926bd2f --- services/votequorum.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/votequorum.c b/services/votequorum.c index 6f360f47..00724e11 100644 --- a/services/votequorum.c +++ b/services/votequorum.c @@ -1128,10 +1128,10 @@ static void message_handler_req_lib_votequorum_getinfo (void *conn, void *messag list_iterate(nodelist, &cluster_members_list) { iternode = list_entry(nodelist, struct cluster_node, list); - if (node->state == NODESTATE_MEMBER) { + if (iternode->state == NODESTATE_MEMBER) { highest_expected = - max(highest_expected, node->expected_votes); - total_votes += node->votes; + max(highest_expected, iternode->expected_votes); + total_votes += iternode->votes; } }