Skip to content

Commit

Permalink
restore store filter
Browse files Browse the repository at this point in the history
Signed-off-by: you06 <you1474600@gmail.com>
  • Loading branch information
you06 committed Aug 8, 2023
1 parent fe70faa commit b79875d
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 @@ -745,7 +745,7 @@ func (state *accessFollower) isCandidate(idx AccessIndex, replica *replica) bool
return false
}
// Choose a replica with matched labels.
return replica.store.IsLabelsMatch(state.option.labels)
return replica.store.IsStoreMatch(state.option.stores) && replica.store.IsLabelsMatch(state.option.labels)
}

// tryIdleReplica is the state where we find the leader is busy and retry the request using replica read.
Expand Down

0 comments on commit b79875d

Please sign in to comment.