Skip to content

Commit

Permalink
fix request source tag unset (#1025)
Browse files Browse the repository at this point in the history
Signed-off-by: crazycs520 <[email protected]>
Co-authored-by: disksing <[email protected]>
  • Loading branch information
crazycs520 and disksing authored Oct 20, 2023
1 parent ec40555 commit 476ea22
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 476ea22

Please sign in to comment.