Skip to content

Commit

Permalink
Update internal/locate/region_cache.go
Browse files Browse the repository at this point in the history
Co-authored-by: crazycs <[email protected]>
  • Loading branch information
you06 and crazycs520 authored Jun 27, 2023
1 parent 3b066b5 commit 3d629f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/locate/region_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -2435,8 +2435,7 @@ func (s *Store) reResolve(c *RegionCache) (bool, error) {

func (s *Store) getResolveState() resolveState {
if s == nil {
var state resolveState
return state
return unresolved
}
return resolveState(atomic.LoadUint64(&s.state))
}
Expand Down

0 comments on commit 3d629f8

Please sign in to comment.