[#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:
parent
b587b23e79
commit
d1d846cf4d
1 changed files with 2 additions and 2 deletions
|
@ -63,9 +63,9 @@ func (e *StorageEngine) Inhume(prm *InhumePrm) (*InhumeRes, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ok := e.inhume(prm.addrs[i], shPrm, true)
|
ok := e.inhume(prm.addrs[i], shPrm, true)
|
||||||
if ok {
|
if !ok {
|
||||||
ok = e.inhume(prm.addrs[i], shPrm, false)
|
ok = e.inhume(prm.addrs[i], shPrm, false)
|
||||||
if ok {
|
if !ok {
|
||||||
return nil, errInhumeFailure
|
return nil, errInhumeFailure
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue