[#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 <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-20 17:06:38 +03:00 committed by Alex Vanin
parent b587b23e79
commit d1d846cf4d

View file

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