Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
Signed-off-by: you06 <you1474600@gmail.com>
  • Loading branch information
you06 committed Jul 27, 2023
1 parent dff471a commit add9f79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/locate/region_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ func (state *accessKnownLeader) onNoLeader(selector *replicaSelector) {
// the leader will be updated to replicas[0] and give it another chance.
type tryFollower struct {
stateBase
// if the leader is unavailable, but it still holds the leadership, fallbackFromLeader is true and replica read is enabled.
fallbackFromLeader bool
leaderIdx AccessIndex
lastIdx AccessIndex
Expand Down

0 comments on commit add9f79

Please sign in to comment.