Skip to content

Commit dfb80dc

Browse files
committed
Review comments.
Signed-off-by: Steve Simpson <[email protected]>
1 parent 46b7ff9 commit dfb80dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/ring/model.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -377,11 +377,12 @@ func resolveConflicts(normalizedIngesters map[string]InstanceDesc) {
377377
func (d *Desc) RemoveTombstones(limit time.Time) (total, removed int) {
378378
for n, ing := range d.Ingesters {
379379
if ing.State == LEFT {
380-
total++
381380
if limit.IsZero() || time.Unix(ing.Timestamp, 0).Before(limit) {
382381
// remove it
383382
delete(d.Ingesters, n)
384383
removed++
384+
} else {
385+
total++
385386
}
386387
}
387388
}

0 commit comments

Comments
 (0)