mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: leader denies vote with the same term
This commit is contained in:
parent
93b08502e4
commit
828a8cf326
@ -282,6 +282,8 @@ func (sm *stateMachine) Step(m Message) {
|
||||
sm.sendAppend()
|
||||
}
|
||||
}
|
||||
case msgVote:
|
||||
sm.send(Message{To: m.From, Type: msgVoteResp, Index: -1})
|
||||
}
|
||||
case stateCandidate:
|
||||
switch m.Type {
|
||||
|
Loading…
x
Reference in New Issue
Block a user