forked from TrueCloudLab/frostfs-node
[#227] transformer: Inherit parent header in linking object
In previous implementation linking object inherited only ID of the parent object. From now it inherits full header like last child. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
b8e8e1e80d
commit
6cddc91cbf
1 changed files with 1 additions and 3 deletions
|
@ -215,10 +215,8 @@ func writeHashes(hashers []*payloadChecksumHasher) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *payloadSizeLimiter) initializeLinking() {
|
func (s *payloadSizeLimiter) initializeLinking() {
|
||||||
id := s.current.ParentID()
|
|
||||||
|
|
||||||
s.current = fromObject(s.current)
|
s.current = fromObject(s.current)
|
||||||
s.current.SetParentID(id)
|
s.current.SetParent(s.parent.Object().SDK())
|
||||||
s.current.SetChildren(s.previous...)
|
s.current.SetChildren(s.previous...)
|
||||||
s.current.SetSplitID(s.splitID)
|
s.current.SetSplitID(s.splitID)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue