mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-02 22:51:25 +00:00
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:
parent
86ac23229e
commit
93fc127288
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user