mirror of
https://github.com/fluencelabs/redis
synced 2025-05-30 18:51:19 +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;
|
sentinelRedisInstance *ri;
|
||||||
int usable;
|
int usable;
|
||||||
|
|
||||||
|
if (c->argc != 3) goto numargserr;
|
||||||
if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2]))
|
if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2]))
|
||||||
== NULL) return;
|
== NULL) return;
|
||||||
int result = sentinelIsQuorumReachable(ri,&usable);
|
int result = sentinelIsQuorumReachable(ri,&usable);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user