[#319] object/transformer: Add expiration epoch to each part
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
This commit is contained in:
parent
9d7f7bd04f
commit
48b48ced15
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue