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
This commit is contained in:
Christine Caulfield 2009-01-29 14:21:05 +00:00
parent 86ac23229e
commit 93fc127288

View File

@ -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;
}
}