forked from TrueCloudLab/frostfs-sdk-go
[#224] object: Introduce parent attributes in EC-header
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
717a7d00ef
commit
ebd8fcd168
5 changed files with 59 additions and 13 deletions
|
@ -41,7 +41,14 @@ func (c *Constructor) Split(obj *objectSDK.Object, key *ecdsa.PrivateKey) ([]*ob
|
|||
}
|
||||
}
|
||||
|
||||
ec := objectSDK.NewECHeader(parent, obj.SplitID(), parentSplitParentID, uint32(i), uint32(len(payloadShards)), headerShards[i], uint32(len(header)))
|
||||
ecParentInfo := objectSDK.ECParentInfo{
|
||||
ID: parent,
|
||||
SplitID: obj.SplitID(),
|
||||
SplitParentID: parentSplitParentID,
|
||||
Attributes: obj.Attributes(),
|
||||
}
|
||||
|
||||
ec := objectSDK.NewECHeader(ecParentInfo, uint32(i), uint32(len(payloadShards)), headerShards[i], uint32(len(header)))
|
||||
chunk.SetECHeader(ec)
|
||||
if err := setIDWithSignature(chunk, key); err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue