mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: use becomeFollower in cadidate state
This commit is contained in:
parent
73e3394d2d
commit
ab79550693
@ -305,7 +305,7 @@ func (sm *stateMachine) Step(m Message) {
|
||||
sm.lead = sm.addr
|
||||
sm.sendAppend()
|
||||
case len(sm.votes) - gr:
|
||||
sm.state = stateFollower
|
||||
sm.becomeFollower(sm.term, none)
|
||||
}
|
||||
}
|
||||
case stateFollower:
|
||||
|
Loading…
x
Reference in New Issue
Block a user