diff --git a/raft/raft.go b/raft/raft.go index b4c0f0248ca..634d02e5e51 100644 --- a/raft/raft.go +++ b/raft/raft.go @@ -662,6 +662,7 @@ func (r *raft) becomePreCandidate() { // r.Term or change r.Vote. r.step = stepCandidate r.votes = make(map[uint64]bool) + r.lead = None r.tick = r.tickElection r.state = StatePreCandidate r.logger.Infof("%x became pre-candidate at term %d", r.id, r.Term)