diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2020-03-18 11:06:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-18 11:06:49 +0100 |
commit | c1295bb9f1234f2a3dd3c1bf76eb5afcf8cf711a (patch) | |
tree | c58e097df2d55c85884cc46a83f184f44f617bb6 | |
parent | c52415b219ebc9e4baa162d05118a78909c0cb06 (diff) | |
parent | 771df8a436d7a01f95bb319ff2b342138c33d2bb (diff) | |
download | redis-c1295bb9f1234f2a3dd3c1bf76eb5afcf8cf711a.tar.gz |
Merge pull request #6996 from artix75/redis_cli_proxy_info
Support Redis Cluster Proxy PROXY INFO command
-rw-r--r-- | src/redis-cli.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c index 7ad80c0a1..7e440d67c 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -1292,7 +1292,11 @@ static int cliSendCommand(int argc, char **argv, long repeat) { (argc == 3 && !strcasecmp(command,"latency") && !strcasecmp(argv[1],"graph")) || (argc == 2 && !strcasecmp(command,"latency") && - !strcasecmp(argv[1],"doctor"))) + !strcasecmp(argv[1],"doctor")) || + /* Format PROXY INFO command for Redis Cluster Proxy: + * https://github.com/artix75/redis-cluster-proxy */ + (argc >= 2 && !strcasecmp(command,"proxy") && + !strcasecmp(argv[1],"info"))) { output_raw = 1; } |