From e430e21f8f3ed184166fc105da88777980b9189c Mon Sep 17 00:00:00 2001 From: adanwat Date: Wed, 23 Aug 2023 12:33:36 +0000 Subject: [PATCH] updating the command routing --- redis/src/cluster_routing.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/redis/src/cluster_routing.rs b/redis/src/cluster_routing.rs index 244625f41..89aa1e07d 100644 --- a/redis/src/cluster_routing.rs +++ b/redis/src/cluster_routing.rs @@ -245,7 +245,8 @@ impl RoutingInfo { b"WAIT" => Some(Aggregate(AggregateOp::Min)), - b"CONFIG SET" | b"FLUSHALL" | b"FLUSHDB" | b"FUNCTION DELETE" | b"FUNCTION FLUSH" + 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) @@ -299,9 +300,10 @@ impl RoutingInfo { | b"MEMORY STATS" | b"INFO" => Some(RoutingInfo::MultiNode(MultipleNodeRoutingInfo::AllMasters)), - b"SLOWLOG GET" | b"SLOWLOG LEN" | b"SLOWLOG RESET" | b"CONFIG SET" - | b"SCRIPT FLUSH" | b"SCRIPT LOAD" | b"LATENCY RESET" | b"LATENCY GRAPH" - | b"LATENCY HISTOGRAM" | b"LATENCY HISTORY" | b"LATENCY DOCTOR" | b"LATENCY LATEST" => { + b"SLOWLOG GET" | b"SLOWLOG LEN" | b"SLOWLOG RESET" | b"CONFIG SET" | b"CONFIG GET" + | b"CONFIG RESETSTAT" | b"CONFIG REWRITE" | b"SCRIPT FLUSH" | b"SCRIPT LOAD" + | b"LATENCY RESET" | b"LATENCY GRAPH" | b"LATENCY HISTOGRAM" | b"LATENCY HISTORY" + | b"LATENCY DOCTOR" | b"LATENCY LATEST" => { Some(RoutingInfo::MultiNode(MultipleNodeRoutingInfo::AllNodes)) }