Revision 741a55d1 src/raft/RaftManager.cc
src/raft/RaftManager.cc | ||
---|---|---|
810 | 810 |
|
811 | 811 |
std::ostringstream oss; |
812 | 812 |
|
813 |
unsigned int granted_votes = 0;
|
|
813 |
unsigned int granted_votes; |
|
814 | 814 |
unsigned int votes2go; |
815 | 815 |
|
816 | 816 |
Nebula& nd = Nebula::instance(); |
... | ... | |
851 | 851 |
|
852 | 852 |
raft_state.to_xml(raft_state_xml); |
853 | 853 |
|
854 |
votes2go = num_servers / 2; |
|
854 |
votes2go = num_servers / 2; |
|
855 |
granted_votes = 0; |
|
855 | 856 |
|
856 | 857 |
_term = term; |
857 | 858 |
_server_id = server_id; |
Also available in: Unified diff