raft: track all votes, even not own
To detect split vote a node needs to see that number of free votes is not enough for anyone to win even if it gets them all. Hence every node needs to count votes for all other nodes. The patch makes raft store votes in a bit more complicated manner than a simple bitmap for just the current instance. Part of #5285
Showing
- src/lib/raft/raft.c 33 additions, 8 deletionssrc/lib/raft/raft.c
- src/lib/raft/raft.h 17 additions, 7 deletionssrc/lib/raft/raft.h
- test/unit/raft.c 77 additions, 8 deletionstest/unit/raft.c
- test/unit/raft.result 15 additions, 4 deletionstest/unit/raft.result
- test/unit/raft_test_utils.c 23 additions, 4 deletionstest/unit/raft_test_utils.c
- test/unit/raft_test_utils.h 8 additions, 0 deletionstest/unit/raft_test_utils.h
Loading
Please register or sign in to comment