Skip to content

Commit

Permalink
Merge pull request etcd-io#1 from jkessler93/fix-lease-bug
Browse files Browse the repository at this point in the history
AN-123700: Fix Raft lease bug
  • Loading branch information
nanhu18 authored Jan 17, 2019
2 parents 2cf9e51 + 9892161 commit 769dfcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions raft/raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 769dfcd

Please sign in to comment.