mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Merge pull request #2695 from rogerlz/unstable
redis-sentinel crash if ckquorum command is executed without args
This commit is contained in:
commit
0c62d95538
@ -3041,6 +3041,7 @@ void sentinelCommand(client *c) {
|
||||
sentinelRedisInstance *ri;
|
||||
int usable;
|
||||
|
||||
if (c->argc != 3) goto numargserr;
|
||||
if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2]))
|
||||
== NULL) return;
|
||||
int result = sentinelIsQuorumReachable(ri,&usable);
|
||||
|
Loading…
x
Reference in New Issue
Block a user