Skip to content

Commit

Permalink
node: Do not search children by SplitID if link or last objects are e…
Browse files Browse the repository at this point in the history
…nough

Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell committed Mar 7, 2024
1 parent 4278283 commit 8356f83
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/services/object/delete/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@ func (exec *execCtx) collectMembers() (ok bool) {
}

if _, withLink := exec.splitInfo.Link(); withLink {
ok = exec.collectChildren()
if exec.collectChildren() {
return true

Check warning on line 109 in pkg/services/object/delete/exec.go

View check run for this annotation

Codecov / codecov/patch

pkg/services/object/delete/exec.go#L108-L109

Added lines #L108 - L109 were not covered by tests
}
}

if !ok {
if _, withLast := exec.splitInfo.LastPart(); withLast {
ok = exec.collectChain()
if !ok {
return
}
if _, withLast := exec.splitInfo.LastPart(); withLast {
if exec.collectChain() {
return true

Check warning on line 115 in pkg/services/object/delete/exec.go

View check run for this annotation

Codecov / codecov/patch

pkg/services/object/delete/exec.go#L113-L115

Added lines #L113 - L115 were not covered by tests
}
} // may be fail if neither right nor linking ID is set?
}
// may be fail if neither right nor linking ID is set?

return exec.supplementBySplitID()
}
Expand Down

0 comments on commit 8356f83

Please sign in to comment.