[#243] service/object: Fix object chain assembly for tombstone body
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
9265e31e65
commit
a01262d8bd
5 changed files with 7 additions and 5 deletions
|
@ -137,6 +137,7 @@ func (exec *execCtx) collectChain() bool {
|
|||
exec.log.Debug("assembling chain...")
|
||||
|
||||
for prev := exec.splitInfo.LastPart(); prev != nil; {
|
||||
chain = append(chain, prev)
|
||||
prev, err = exec.svc.header.previous(exec, prev)
|
||||
|
||||
switch {
|
||||
|
@ -154,12 +155,9 @@ func (exec *execCtx) collectChain() bool {
|
|||
exec.status = statusOK
|
||||
exec.err = nil
|
||||
}
|
||||
|
||||
chain = append(chain, prev)
|
||||
}
|
||||
|
||||
exec.addMembers(chain)
|
||||
exec.tombstone.SetSplitID(exec.splitInfo.SplitID())
|
||||
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue