Skip to content

Commit

Permalink
Changed CONFIG GET response policy to SPECIAL
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Aug 28, 2023
1 parent 45dc902 commit 68f6099
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions redis/src/cluster_routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,10 @@ impl RoutingInfo {

b"WAIT" => Some(Aggregate(AggregateOp::Min)),

b"CONFIG SET" | b"CONFIG GET" | b"CONFIG RESETSTAT" | b"CONFIG REWRITE"
| b"FLUSHALL" | b"FLUSHDB" | b"FUNCTION DELETE" | b"FUNCTION FLUSH"
| b"FUNCTION LOAD" | b"FUNCTION RESTORE" | b"LATENCY RESET" | b"MEMORY PURGE"
| b"MSET" | b"PING" | b"SCRIPT FLUSH" | b"SCRIPT LOAD" | b"SLOWLOG RESET" => {
Some(AllSucceeded)
}
b"CONFIG SET" | b"CONFIG RESETSTAT" | b"CONFIG REWRITE" | b"FLUSHALL" | b"FLUSHDB"
| b"FUNCTION DELETE" | b"FUNCTION FLUSH" | b"FUNCTION LOAD" | b"FUNCTION RESTORE"
| b"LATENCY RESET" | b"MEMORY PURGE" | b"MSET" | b"PING" | b"SCRIPT FLUSH"
| b"SCRIPT LOAD" | b"SLOWLOG RESET" => Some(AllSucceeded),

b"KEYS" | b"MGET" | b"SLOWLOG GET" => Some(CombineArrays),

Expand All @@ -268,6 +266,8 @@ impl RoutingInfo {

b"INFO" => Some(Special),

b"CONFIG GET" => Some(Special),

_ => None,
}
}
Expand Down

0 comments on commit 68f6099

Please sign in to comment.