Simplify stones counting.

Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
This commit is contained in:
Goutham Veeramachaneni 2018-04-03 18:17:02 +05:30
parent 8748f33c54
commit f82a1fe4f2
No known key found for this signature in database
GPG Key ID: F1C217E8E9023CAD
1 changed files with 1 additions and 3 deletions

View File

@ -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
})