From 75ef069fbe835283c261f82ca6cbbbe800438f90 Mon Sep 17 00:00:00 2001 From: shohame Date: Sun, 8 Sep 2024 12:26:12 +0000 Subject: [PATCH] Add SCRIPT SHOW cmd --- redis/src/cluster_routing.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redis/src/cluster_routing.rs b/redis/src/cluster_routing.rs index 27abd54fe..848d4d750 100644 --- a/redis/src/cluster_routing.rs +++ b/redis/src/cluster_routing.rs @@ -526,6 +526,7 @@ fn base_routing(cmd: &[u8]) -> RouteBy { | b"READONLY" | b"READWRITE" | b"SAVE" + | b"SCRIPT SHOW" | b"TFCALL" | b"TFCALLASYNC" | b"TFUNCTION DELETE" @@ -732,6 +733,7 @@ pub fn is_readonly_cmd(cmd: &[u8]) -> bool { | b"SCRIPT FLUSH" | b"SCRIPT KILL" | b"SCRIPT LOAD" + | b"SCRIPT SHOW" | b"SDIFF" | b"SINTER" | b"SINTERCARD"