Skip to content

Commit

Permalink
Update replica_selector.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mittalrishabh authored Jan 7, 2025
1 parent 396ab5c commit b7c346d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/locate/replica_selector.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func (s *ReplicaSelectMixedStrategy) canSendReplicaRead(selector *replicaSelecto
replicas := selector.replicas
replica := replicas[s.leaderIdx]

if leader.attempts == 0 || replica.hasFlag(deadlineErrUsingConfTimeoutFlag) || replica.hasFlag(serverIsBusyFlag) {
if replica.attempts == 0 || replica.hasFlag(deadlineErrUsingConfTimeoutFlag) || replica.hasFlag(serverIsBusyFlag) {
// don't do the replica read if leader is not exhausted or leader has timeout or server busy error.
return false
}
Expand Down

0 comments on commit b7c346d

Please sign in to comment.