Merge pull request #312 from gouthamve/nit-1

Simplify stones counting.
This commit is contained in:
Goutham Veeramachaneni 2018-04-05 17:37:47 +05:30 committed by GitHub
commit d610390427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
})