[#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>
remotes/KirillovDenis/release/v0.21.1
Leonard Lyubich 2021-05-20 17:06:38 +03:00 committed by Alex Vanin
parent b587b23e79
commit d1d846cf4d
1 changed files with 2 additions and 2 deletions

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