Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
Merge pull request #312 from gouthamve/nit-1
Browse files Browse the repository at this point in the history
Simplify stones counting.
  • Loading branch information
gouthamve authored Apr 5, 2018
2 parents 8748f33 + f82a1fe commit d610390
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions block.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,7 @@ func (pb *Block) CleanTombstones(dest string, c Compactor) (bool, error) {
numStones := 0

pb.tombstones.Iter(func(id uint64, ivs Intervals) error {
for range ivs {
numStones++
}
numStones += len(ivs)

return nil
})
Expand Down

0 comments on commit d610390

Please sign in to comment.