[#1318] node/gc: Fix tombstones handling

Handle only expired tombstones.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-04-21 19:18:21 +03:00 committed by LeL
parent a275a71a87
commit 2aec5736e0

View file

@ -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]