Skip to content

Commit

Permalink
*: fix two minor bugs (#1553)
Browse files Browse the repository at this point in the history
 

Signed-off-by: zyguan <[email protected]>
  • Loading branch information
zyguan authored Jan 13, 2025
1 parent d355434 commit a348c17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/locate/region_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ func (s *RegionRequestSender) SendReqCtx(
if req.InputRequestSource != "" && s.replicaSelector != nil {
patchRequestSource(req, s.replicaSelector.replicaType())
}
if e := tikvrpc.SetContext(req, rpcCtx.Meta, rpcCtx.Peer); e != nil {
if err := tikvrpc.SetContext(req, rpcCtx.Meta, rpcCtx.Peer); err != nil {
return nil, nil, retryTimes, err
}
if s.replicaSelector != nil {
Expand Down
1 change: 1 addition & 0 deletions txnkv/txnsnapshot/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ func (s *KVSnapshot) batchGetSingleRegion(bo *retry.Backoffer, batch batchKeys,
s.mu.RLock()
req, err := s.buildBatchGetRequest(pending, busyThresholdMs, readTier)
if err != nil {
s.mu.RUnlock()
return err
}
req.InputRequestSource = s.GetRequestSource()
Expand Down

0 comments on commit a348c17

Please sign in to comment.