Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: crazycs520 <crazycs520@gmail.com>
  • Loading branch information
crazycs520 committed Jul 26, 2023
1 parent 88f6b2f commit 04da839
Showing 1 changed file with 1 addition 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 @@ -1059,7 +1059,7 @@ func (s *RegionRequestSender) SendReqCtx(
// TODO: Change the returned error to something like "region missing in cache",
// and handle this error like EpochNotMatch, which means to re-split the request and retry.
cacheRegionIsValid := "unknown"
if s.replicaSelector.region != nil {
if s.replicaSelector != nil && s.replicaSelector.region != nil {
if s.replicaSelector.region.isValid() {
cacheRegionIsValid = "true"
} else {
Expand Down

0 comments on commit 04da839

Please sign in to comment.