From d1d846cf4d5784820502471a1bb2f53cac0126c0 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 20 May 2021 17:06:38 +0300 Subject: [PATCH] [#546] engine/inhume: Fix incorrect reaction on successful traverse In previous implementation storage engine false-negatively reacted to a successful Inhume operation. Signed-off-by: Leonard Lyubich --- pkg/local_object_storage/engine/inhume.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/local_object_storage/engine/inhume.go b/pkg/local_object_storage/engine/inhume.go index dd50e87e34..37172ad003 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 } }