[#1819] engine: Fix error counter in Inhume
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
1e35c12cc1
commit
af56574849
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue