Support Redis Cluster Proxy PROXY INFO command

This commit is contained in:
artix 2020-02-18 10:46:10 +01:00
parent bce9a68b39
commit 771df8a436

View File

@ -1292,7 +1292,11 @@ static int cliSendCommand(int argc, char **argv, long repeat) {
(argc == 3 && !strcasecmp(command,"latency") && (argc == 3 && !strcasecmp(command,"latency") &&
!strcasecmp(argv[1],"graph")) || !strcasecmp(argv[1],"graph")) ||
(argc == 2 && !strcasecmp(command,"latency") && (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; output_raw = 1;
} }