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

Commit

Permalink
Simplify stones counting.
Browse files Browse the repository at this point in the history
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
  • Loading branch information
gouthamve committed Apr 3, 2018
1 parent 8748f33 commit f82a1fe
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 f82a1fe

Please sign in to comment.