Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/go_modules/examples/gcworker/go…
Browse files Browse the repository at this point in the history
…lang.org/x/net-0.17.0
  • Loading branch information
disksing authored Oct 20, 2023
2 parents c84c408 + 476ea22 commit 2f17521
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/locate/region_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -1449,13 +1449,13 @@ func (s *RegionRequestSender) SendReqCtx(
}
}

if e := tikvrpc.SetContext(req, rpcCtx.Meta, rpcCtx.Peer); e != nil {
return nil, nil, retryTimes, err
}
rpcCtx.contextPatcher.applyTo(&req.Context)
if req.InputRequestSource != "" && s.replicaSelector != nil {
s.replicaSelector.patchRequestSource(req, rpcCtx)
}
if e := tikvrpc.SetContext(req, rpcCtx.Meta, rpcCtx.Peer); e != nil {
return nil, nil, retryTimes, err
}

var retry bool
resp, retry, err = s.sendReqToRegion(bo, rpcCtx, req, timeout)
Expand Down

0 comments on commit 2f17521

Please sign in to comment.