Skip to content

Commit

Permalink
Merge pull request #17 from nihohit/fix-read
Browse files Browse the repository at this point in the history
AllNodes should always take replicas
  • Loading branch information
nihohit authored Aug 6, 2023
2 parents 2143290 + 1290ea7 commit 63adbe0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions redis/src/cluster_topology.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ impl SlotMap {
allow_replica: bool,
) -> Vec<&str> {
match routing {
MultipleNodeRoutingInfo::AllNodes => self
.all_unique_addresses(!allow_replica)
.into_iter()
.collect(),
MultipleNodeRoutingInfo::AllNodes => {
self.all_unique_addresses(false).into_iter().collect()
}
MultipleNodeRoutingInfo::AllMasters => {
self.all_unique_addresses(true).into_iter().collect()
}
Expand Down

0 comments on commit 63adbe0

Please sign in to comment.