forked from TrueCloudLab/frostfs-node
[#161] object/delete: Add address from request body to tombstone content
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
3c17e871e1
commit
d38633e047
1 changed files with 3 additions and 1 deletions
|
@ -138,7 +138,7 @@ func (s *Service) getRelations(ctx context.Context, prm *Prm) ([]*objectSDK.Addr
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
childList := linking.GetChildren()
|
childList := linking.GetChildren()
|
||||||
res = make([]*objectSDK.Address, 0, len(childList)+1)
|
res = make([]*objectSDK.Address, 0, len(childList)+2) // 1 for parent, 1 for linking
|
||||||
|
|
||||||
for i := range childList {
|
for i := range childList {
|
||||||
addr := objectSDK.NewAddress()
|
addr := objectSDK.NewAddress()
|
||||||
|
@ -155,6 +155,8 @@ func (s *Service) getRelations(ctx context.Context, prm *Prm) ([]*objectSDK.Addr
|
||||||
res = append(res, addr)
|
res = append(res, addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
res = append(res, prm.addr)
|
||||||
|
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue