[#1619] gc: Fix metric frostfs_node.garbage_collector.marking_duration_seconds
All checks were successful
Vulncheck / Vulncheck (push) Successful in 1m5s
Pre-commit hooks / Pre-commit (push) Successful in 1m30s
Build / Build Components (push) Successful in 2m16s
Tests and linters / gopls check (push) Successful in 3m30s
Tests and linters / Tests with -race (push) Successful in 3m56s
Tests and linters / Run gofumpt (push) Successful in 4m19s
Tests and linters / Staticcheck (push) Successful in 4m55s
Tests and linters / Lint (push) Successful in 4m59s
Tests and linters / Tests (push) Successful in 5m2s
OCI image / Build container images (push) Successful in 5m22s

Change-Id: I957f930d1babf179d0fb6de624a90f4fe9977862
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
Anton Nikiforov 2025-03-25 10:15:51 +03:00
parent 163e2e9f83
commit 5470b205fd

View file

@ -527,7 +527,8 @@ func (s *Shard) collectExpiredTombstones(ctx context.Context, e Event) {
return
}
release, err := s.opsLimiter.ReadRequest(ctx)
var release qos.ReleaseFunc
release, err = s.opsLimiter.ReadRequest(ctx)
if err != nil {
log.Error(ctx, logs.ShardIteratorOverGraveyardFailed, zap.Error(err))
s.m.RUnlock()