Skip to content

Commit

Permalink
redis-core: add az awareness to read strategy
Browse files Browse the repository at this point in the history
Signed-off-by: Adar Ovadia <[email protected]>
  • Loading branch information
Adar Ovadia committed Nov 7, 2024
1 parent 1156130 commit c4eb769
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions glide-core/redis-rs/redis/src/cluster_routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ pub(crate) fn combine_and_sort_array_results(
fn get_route(is_readonly: bool, key: &[u8]) -> Route {
let slot = get_slot(key);
if is_readonly {
// adarov: here we need to check if az awareness is on and to route accordinally
Route::new(slot, SlotAddr::ReplicaOptional)
} else {
Route::new(slot, SlotAddr::Master)
Expand Down Expand Up @@ -1203,8 +1202,6 @@ pub enum SlotAddr {
/// The request must be routed to replica node, if one exists.
/// For example, by user requested routing.
ReplicaRequired,
/// The request must be routed to replica node in the same user's AZ, if one exists.
AZAffinity,
}

/// This is just a simplified version of [`Slot`],
Expand Down

0 comments on commit c4eb769

Please sign in to comment.