mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
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.
This commit is contained in:
parent
6502947a85
commit
d5e01519e5
@ -398,6 +398,7 @@ struct redisCommand sentinelcmds[] = {
|
|||||||
{"publish",sentinelPublishCommand,3,"",0,NULL,0,0,0,0,0},
|
{"publish",sentinelPublishCommand,3,"",0,NULL,0,0,0,0,0},
|
||||||
{"info",sentinelInfoCommand,-1,"",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},
|
{"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}
|
{"shutdown",shutdownCommand,-1,"",0,NULL,0,0,0,0,0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user