[#319] object/transformer: Add expiration epoch to each part
All checks were successful
DCO / DCO (pull_request) Successful in 30s
Code generation / Generate proto (pull_request) Successful in 33s
Tests and linters / Tests (pull_request) Successful in 46s
Tests and linters / Lint (pull_request) Successful in 1m42s

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
This commit is contained in:
Aleksey Savchuk 2025-01-28 14:37:33 +03:00
parent 9d7f7bd04f
commit 48b48ced15
Signed by: a-savchuk
GPG key ID: 70C0A7FF6F9C4639

View file

@ -6,6 +6,7 @@ import (
"crypto/sha256"
"fmt"
objectV2 "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/object"
buffPool "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/util/pool"
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/checksum"
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object"
@ -327,4 +328,11 @@ func (s *payloadSizeLimiter) prepareFirstChild() {
s.current.SetAttributes()
// attributes will be added to parent in detachParent
// add expiration epoch to each part
for _, attr := range s.parAttrs {
if attr.Key() == objectV2.SysAttributeExpEpoch {
s.current.SetAttributes(attr)
}
}
}