votequorum_getinfo should return the votes numbers of the requested node, not just itself.

Index: services/votequorum.c
===================================================================
--- services/votequorum.c       (revision 2397)
+++ services/votequorum.c       (working copy)
@@ -1167,8 +1167,8 @@
                        total_votes += quorum_device->votes;
                }
 
-               res_lib_votequorum_getinfo.votes = us->votes;
-               res_lib_votequorum_getinfo.expected_votes = us->expected_votes;
+               res_lib_votequorum_getinfo.votes = node->votes;
+               res_lib_votequorum_getinfo.expected_votes = 
node->expected_votes;
                res_lib_votequorum_getinfo.highest_expected = highest_expected;
 
                res_lib_votequorum_getinfo.quorum = quorum;
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to