forked from TrueCloudLab/frostfs-node
[#1318] node/gc: Fix tombstones handling
Handle only expired tombstones. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
a275a71a87
commit
2aec5736e0
1 changed files with 2 additions and 2 deletions
|
@ -286,8 +286,8 @@ func (s *Shard) collectExpiredTombstones(ctx context.Context, e Event) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug("handling expired tombstones batch", zap.Int("number", tssLen))
|
log.Debug("handling expired tombstones batch", zap.Int("number", len(tssExp)))
|
||||||
s.expiredTombstonesCallback(ctx, tss)
|
s.expiredTombstonesCallback(ctx, tssExp)
|
||||||
|
|
||||||
iterPrm.SetOffset(tss[tssLen-1].Address())
|
iterPrm.SetOffset(tss[tssLen-1].Address())
|
||||||
tss = tss[:0]
|
tss = tss[:0]
|
||||||
|
|
Loading…
Reference in a new issue