Skip to content

Commit

Permalink
neofs: Write object payload if exists
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Baidakov <[email protected]>
  • Loading branch information
smallhive committed Sep 12, 2023
1 parent f9c431c commit 1d7ecbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/neofs/neofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ func (x *NeoFS) CreateObject(ctx context.Context, prm layer.PrmObjectCreate) (oi
var lock object.Lock
lock.WriteMembers(prm.Locks)
obj.WriteLock(lock)

// we can't have locks and payload at the same time.
prm.Payload = bytes.NewReader(obj.Payload())
}

var prmObjPutInit client.PrmObjectPutInit
Expand Down

0 comments on commit 1d7ecbe

Please sign in to comment.