forked from TrueCloudLab/frostfs-node
[#1253] deleteSvc: Use copy of common parameters
getSvc may change the values of some fields, so Head will affect Delete or Put. In this case, the change is necessary so that the session token is stored in the tombstone object (EC assemble calls `ForgetTokens`). Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
fc383ea6ae
commit
e83d39e33f
1 changed files with 6 additions and 1 deletions
|
@ -30,7 +30,12 @@ func (w *headSvcWrapper) headAddress(ctx context.Context, exec *execCtx, addr oi
|
|||
wr := getsvc.NewSimpleObjectWriter()
|
||||
|
||||
p := getsvc.HeadPrm{}
|
||||
p.SetCommonParameters(exec.commonParameters())
|
||||
|
||||
if cp := exec.commonParameters(); cp != nil {
|
||||
commonParameters := *cp
|
||||
p.SetCommonParameters(&commonParameters)
|
||||
}
|
||||
|
||||
p.SetHeaderWriter(wr)
|
||||
p.WithRawFlag(true)
|
||||
p.WithAddress(addr)
|
||||
|
|
Loading…
Reference in a new issue