Xiang Li
|
62bdcf6f49
raft: range over sm.ins
|
11 years ago |
Blake Mizerany
|
5778c49689
raft: set term in reset
|
11 years ago |
Blake Mizerany
|
67808f8db1
raft: remove vestigial canStep
|
11 years ago |
Blake Mizerany
|
6044b1a0d7
raft: break Step into pieces
|
11 years ago |
Xiang Li
|
f387e3e27d
raft: add Entry.isConfig
|
11 years ago |
Xiang Li
|
3817661f82
raft: rename ConfigAdd/ConfigRemove -> AddNode/RemoveNode
|
11 years ago |
Xiang Li
|
9f315ffe10
raft: make entry type public
|
11 years ago |
Blake Mizerany
|
15a8b46359
raft: add/remove -> addNode/removeNode
|
11 years ago |
Blake Mizerany
|
e5b9e22518
raft: Step returns ok
|
11 years ago |
Blake Mizerany
|
a10461f60d
raft: Add/Remove -> add/remove
|
11 years ago |
Blake Mizerany
|
abd2448931
raft: addr -> id
|
11 years ago |
Xiang Li
|
1a75beb57c
raft: add confAdd and confRemove entry type
|
11 years ago |
Xiang Li
|
989f41477d
raft: rename peer -> peers
|
11 years ago |
Xiang Li
|
8ce6b94e05
raft: add and remove
|
11 years ago |
Xiang Li
|
d293c4915c
raft: fix pendingConf
|
11 years ago |
Xiang Li
|
c03fbf68d6
raft: add conf safety
|
11 years ago |
Xiang Li
|
853a458a0d
raft: change ins from array to map
|
11 years ago |
Yicheng Qin
|
f9c299da8b
raft: return after handling msgBeat
|
11 years ago |
Xiang Li
|
28f87c2a43
raft: use sm.maybeCommit; should not call log.maybeCommit directly
|
11 years ago |
Xiang Li
|
c32d34166e
raft: leader updates its own match; tries to commit after a prop
|
11 years ago |
Xiang Li
|
6fa74b0e33
raft: do bcast when receiving msgBeat
|
11 years ago |
Xiang Li
|
09d1575eeb
raft: node.tick
|
11 years ago |
Xiang Li
|
eff3aadba1
raft: add full stop to every function comment
|
11 years ago |
Xiang Li
|
167ef7e8b0
raft: test leader replies to appResp
|
11 years ago |
Xiang Li
|
9bb7265d64
raft: leader only sends append to the unsynced peer when get a bad appResp
|
11 years ago |
Xiang Li
|
88674a623a
raft: use if statement to handle voteResp
|
11 years ago |
Xiang Li
|
828a8cf326
raft: leader denies vote with the same term
|
11 years ago |
Xiang Li
|
93b08502e4
raft: check voteFor
|
11 years ago |
Yicheng Qin
|
c1c45575be
raft: ins: []*index -> []index
|
11 years ago |
Xiang Li
|
2066ff5acb
raft: candidate should become leader directly if it is a one node cluster
|
11 years ago |