diff options
author | Leandro López (inkel) <inkel.ar@gmail.com> | 2015-02-02 18:16:18 -0300 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2015-03-13 18:29:59 +0100 |
commit | b10c2b7bb261014ee5aec7c8773c4e5f5df90e8b (patch) | |
tree | eac273db4adf7f6c8b5581245d6f4c89b8e9c0b5 | |
parent | f5d9e3f7152c9d5bb5ac47592476e330f662411f (diff) | |
download | redis-b10c2b7bb261014ee5aec7c8773c4e5f5df90e8b.tar.gz |
Support CLIENT commands in Redis Sentinel
When trying to debug sentinel connections or max connections errors it
would be very useful to have the ability to see the list of connected
clients to a running sentinel. At the same time it would be very helpful
to be able to name each sentinel connection or kill offending clients.
This commits adds the already defined CLIENT commands back to Redis
Sentinel.
-rw-r--r-- | src/sentinel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sentinel.c b/src/sentinel.c index 8e78a2263..d9a3d939d 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -397,6 +397,7 @@ struct redisCommand sentinelcmds[] = { {"publish",sentinelPublishCommand,3,"",0,NULL,0,0,0,0,0}, {"info",sentinelInfoCommand,-1,"",0,NULL,0,0,0,0,0}, {"role",sentinelRoleCommand,1,"l",0,NULL,0,0,0,0,0}, + {"client",clientCommand,-2,"rs",0,NULL,0,0,0,0,0}, {"shutdown",shutdownCommand,-1,"",0,NULL,0,0,0,0,0} }; |