forked from TrueCloudLab/frostfs-node
[#821] node: Pass user.ID by value
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
c99157f0b2
commit
c516c7c5f4
12 changed files with 27 additions and 27 deletions
|
@ -176,11 +176,11 @@ func (exec *execCtx) initTombstoneObject() error {
|
|||
tokenSession := exec.commonParameters().SessionToken()
|
||||
if tokenSession != nil {
|
||||
issuer := tokenSession.Issuer()
|
||||
exec.tombstoneObj.SetOwnerID(&issuer)
|
||||
exec.tombstoneObj.SetOwnerID(issuer)
|
||||
} else {
|
||||
// make local node a tombstone object owner
|
||||
localUser := exec.svc.netInfo.LocalNodeID()
|
||||
exec.tombstoneObj.SetOwnerID(&localUser)
|
||||
exec.tombstoneObj.SetOwnerID(localUser)
|
||||
}
|
||||
|
||||
var a objectSDK.Attribute
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue