Skip to content

Commit

Permalink
Merge pull request #5921 from xiang90/r
Browse files Browse the repository at this point in the history
raft: do not change RecentActive when resetState for progress
  • Loading branch information
xiang90 authored Jul 12, 2016
2 parents cc26f2c + eb08f22 commit b2c1112
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion raft/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ type Progress struct {

func (pr *Progress) resetState(state ProgressStateType) {
pr.Paused = false
pr.RecentActive = false
pr.PendingSnapshot = 0
pr.State = state
pr.ins.reset()
Expand Down

0 comments on commit b2c1112

Please sign in to comment.