forked from TrueCloudLab/frostfs-api-go
[#229] pkg/client: Set hash fields to result of short HEAD operation
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
8fe135ab8c
commit
37e2cab93b
1 changed files with 2 additions and 0 deletions
|
@ -730,6 +730,8 @@ func (c *Client) getObjectHeaderV2(ctx context.Context, p *ObjectHeaderParams, o
|
||||||
hdr.SetOwnerID(h.GetOwnerID())
|
hdr.SetOwnerID(h.GetOwnerID())
|
||||||
hdr.SetObjectType(h.GetObjectType())
|
hdr.SetObjectType(h.GetObjectType())
|
||||||
hdr.SetCreationEpoch(h.GetCreationEpoch())
|
hdr.SetCreationEpoch(h.GetCreationEpoch())
|
||||||
|
hdr.SetPayloadHash(h.GetPayloadHash())
|
||||||
|
hdr.SetHomomorphicHash(h.GetHomomorphicHash())
|
||||||
case *v2object.HeaderWithSignature:
|
case *v2object.HeaderWithSignature:
|
||||||
if p.short {
|
if p.short {
|
||||||
return nil, errors.Errorf("wrong header part type: expected %T, received %T",
|
return nil, errors.Errorf("wrong header part type: expected %T, received %T",
|
||||||
|
|
Loading…
Reference in a new issue