Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-bansal committed Feb 9, 2021
1 parent 63f0221 commit edc20a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/draft.go
Original file line number Diff line number Diff line change
Expand Up @@ -1538,8 +1538,8 @@ func (n *node) calculateSnapshot(startIdx, lastIdx, minPendingStart uint64) (*pb
_, span := otrace.StartSpan(n.ctx, "Calculate.Snapshot",
otrace.WithSampler(otrace.AlwaysSample()))
defer span.End()

discardN := 1

// We do not need to block snapshot calculation because of a pending stream. Badger would have
// pending iterators which would ensure that the data above their read ts would not be
// discarded. Secondly, if a new snapshot does get calculated and applied, the follower can just
Expand Down

0 comments on commit edc20a9

Please sign in to comment.