Merge pull request #6996 from artix75/redis_cli_proxy_info

Support Redis Cluster Proxy PROXY INFO command
This commit is contained in:
Salvatore Sanfilippo 2020-03-18 11:06:49 +01:00 committed by GitHub
commit c1295bb9f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}