Skip to content

Commit

Permalink
Fix the panic
Browse files Browse the repository at this point in the history
Signed-off-by: JmPotato <ghzpotato@gmail.com>
  • Loading branch information
JmPotato committed Jun 2, 2021
1 parent f881d3c commit fe99fe4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion store/tikv/region_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ func (s *RegionRequestSender) SendReqCtx(
if err != nil {
return nil, nil, err
}
rpcCtx.lastPeerID = lastPeerID
if rpcCtx != nil {
rpcCtx.lastPeerID = lastPeerID
}

failpoint.Inject("invalidCacheAndRetry", func() {
// cooperate with github.com/pingcap/tidb/store/gcworker/setGcResolveMaxBackoff
Expand Down

0 comments on commit fe99fe4

Please sign in to comment.