[#1819] engine: Fix error counter in Inhume

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
remotes/fyrchik/neofs-adm-fix-commands
Evgenii Stratonikov 2022-09-28 10:34:20 +03:00 committed by fyrchik
parent 1e35c12cc1
commit af56574849
1 changed files with 1 additions and 2 deletions

View File

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