forked from TrueCloudLab/frostfs-node
[#1112] node: Fix race warning for GetObjectAndWritePayload
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
3e782527b8
commit
fe2c1c926f
2 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ func (r *request) assemble(ctx context.Context) {
|
|||
|
||||
r.log.Debug(logs.GetTryingToAssembleTheObject)
|
||||
|
||||
r.prm.common = r.prm.common.WithLocalOnly(false)
|
||||
assembler := newAssembler(r.address(), r.splitInfo(), r.ctxRange(), r)
|
||||
|
||||
r.log.Debug(logs.GetAssemblingSplittedObject,
|
||||
|
@ -119,7 +120,6 @@ func (r *request) GetObjectAndWritePayload(ctx context.Context, id oid.ID, rng *
|
|||
}
|
||||
|
||||
p := r.prm
|
||||
p.common = p.common.WithLocalOnly(false)
|
||||
p.objWriter = w
|
||||
p.rng = rng
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ func (r *request) assembleEC(ctx context.Context) {
|
|||
|
||||
r.log.Debug(logs.GetTryingToAssembleTheECObject)
|
||||
|
||||
r.prm.common = r.prm.common.WithLocalOnly(false)
|
||||
assembler := newAssemblerEC(r.address(), r.infoEC, r.ctxRange(), r, r.containerSource, r.log)
|
||||
|
||||
r.log.Debug(logs.GetAssemblingECObject,
|
||||
|
|
Loading…
Reference in a new issue