From aa8ffebc632840847215a39bfe69d64ad9571bf6 Mon Sep 17 00:00:00 2001 From: Dmitrii Stepanov Date: Fri, 23 Jun 2023 13:34:42 +0300 Subject: [PATCH] [#95] transformer: Set parent version Signed-off-by: Dmitrii Stepanov --- object/transformer/transformer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/object/transformer/transformer.go b/object/transformer/transformer.go index 56a7f071..a1756628 100644 --- a/object/transformer/transformer.go +++ b/object/transformer/transformer.go @@ -82,10 +82,12 @@ func (s *payloadSizeLimiter) initialize() { if ln := len(s.previous); ln > 0 { // initialize parent object once (after 1st object) if ln == 1 { + ver := version.Current() s.parent = fromObject(s.current) s.parent.ResetRelations() s.parent.SetSignature(nil) s.parent.SetAttributes(s.parAttrs...) + s.parent.SetVersion(&ver) s.parentHashers = append(s.parentHashers[:0], s.currentHashers...) }