Skip to content

Commit

Permalink
fixup! actually make TallyVotes correct
Browse files Browse the repository at this point in the history
  • Loading branch information
tbg committed Jun 20, 2019
1 parent f0aecae commit 39103e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion raft/tracker/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ func (p *ProgressTracker) TallyVotes() (granted int, rejected int, _ quorum.Vote
if pr.IsLearner {
continue
}
if p.Votes[id] {
v, voted := p.Votes[id]
if !voted {
continue
}
if v {
granted++
} else {
rejected++
Expand Down

0 comments on commit 39103e1

Please sign in to comment.