From 2aec5736e04e8b2df80a26bb09d6b39a4a9fc2d5 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Thu, 21 Apr 2022 19:18:21 +0300 Subject: [PATCH] [#1318] node/gc: Fix tombstones handling Handle only expired tombstones. Signed-off-by: Pavel Karpy --- pkg/local_object_storage/shard/gc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/local_object_storage/shard/gc.go b/pkg/local_object_storage/shard/gc.go index 548316e32..c3d05c8ad 100644 --- a/pkg/local_object_storage/shard/gc.go +++ b/pkg/local_object_storage/shard/gc.go @@ -286,8 +286,8 @@ func (s *Shard) collectExpiredTombstones(ctx context.Context, e Event) { } } - log.Debug("handling expired tombstones batch", zap.Int("number", tssLen)) - s.expiredTombstonesCallback(ctx, tss) + log.Debug("handling expired tombstones batch", zap.Int("number", len(tssExp))) + s.expiredTombstonesCallback(ctx, tssExp) iterPrm.SetOffset(tss[tssLen-1].Address()) tss = tss[:0]