forked from TrueCloudLab/frostfs-node
[#1377] oid, cid: Upgrade SDK package
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f65898a354
commit
f15e6e888f
118 changed files with 1455 additions and 886 deletions
|
@ -48,8 +48,11 @@ func headersFromObject(obj *object.Object, addr *objectSDKAddress.Address) []eac
|
|||
|
||||
res := make([]eaclSDK.Header, 0, count)
|
||||
for ; obj != nil; obj = obj.Parent() {
|
||||
cnr, _ := addr.ContainerID()
|
||||
id, _ := addr.ObjectID()
|
||||
|
||||
res = append(res,
|
||||
cidHeader(addr.ContainerID()),
|
||||
cidHeader(&cnr),
|
||||
// owner ID
|
||||
&sysObjHdr{
|
||||
k: acl.FilterObjectOwnerID,
|
||||
|
@ -65,7 +68,7 @@ func headersFromObject(obj *object.Object, addr *objectSDKAddress.Address) []eac
|
|||
k: acl.FilterObjectPayloadLength,
|
||||
v: u64Value(obj.PayloadSize()),
|
||||
},
|
||||
oidHeader(addr.ObjectID()),
|
||||
oidHeader(&id),
|
||||
// object version
|
||||
&sysObjHdr{
|
||||
k: acl.FilterObjectVersion,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue