diff --git a/pkg/local_object_storage/engine/inhume.go b/pkg/local_object_storage/engine/inhume.go index dd50e87e3..37172ad00 100644 --- a/pkg/local_object_storage/engine/inhume.go +++ b/pkg/local_object_storage/engine/inhume.go @@ -63,9 +63,9 @@ func (e *StorageEngine) Inhume(prm *InhumePrm) (*InhumeRes, error) { } ok := e.inhume(prm.addrs[i], shPrm, true) - if ok { + if !ok { ok = e.inhume(prm.addrs[i], shPrm, false) - if ok { + if !ok { return nil, errInhumeFailure } }