mirror of
https://github.com/fluencelabs/redis
synced 2025-06-26 15:31:33 +00:00
Check args before run ckquorum. Fix issue #2635
This commit is contained in:
committed by
antirez
parent
ce4c17308e
commit
3915e1c71a
@ -2810,6 +2810,7 @@ void sentinelCommand(redisClient *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);
|
||||||
|
Reference in New Issue
Block a user