diff --git a/internal/locate/region_request.go b/internal/locate/region_request.go index 7a14ebe0d2..7dd5a24f89 100644 --- a/internal/locate/region_request.go +++ b/internal/locate/region_request.go @@ -1295,10 +1295,7 @@ func (s *replicaSelector) canFallback2Follower() bool { return false } _, ok := s.state.(*accessKnownLeader) - if ok { - return false - } - return true + return !ok } func (s *replicaSelector) onDataIsNotReady() {