From af5657484999676e726f7ee523b1859dd151ded2 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 28 Sep 2022 10:34:20 +0300 Subject: [PATCH] [#1819] engine: Fix error counter in Inhume Signed-off-by: Evgenii Stratonikov --- pkg/local_object_storage/engine/inhume.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/local_object_storage/engine/inhume.go b/pkg/local_object_storage/engine/inhume.go index 9a88dd055e..a5ab729680 100644 --- a/pkg/local_object_storage/engine/inhume.go +++ b/pkg/local_object_storage/engine/inhume.go @@ -146,8 +146,6 @@ func (e *StorageEngine) inhumeAddr(addr oid.Address, prm shard.InhumePrm, checkE _, err := sh.Inhume(prm) if err != nil { - e.reportShardError(sh, "could not inhume object in shard", err) - switch { case errors.As(err, &errLocked): status = 1 @@ -157,6 +155,7 @@ func (e *StorageEngine) inhumeAddr(addr oid.Address, prm shard.InhumePrm, checkE return true } + e.reportShardError(sh, "could not inhume object in shard", err) return false }