mirror of
https://github.com/fluencelabs/redis
synced 2025-06-26 07:21:35 +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;
|
||||
int usable;
|
||||
|
||||
if (c->argc != 3) goto numargserr;
|
||||
if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2]))
|
||||
== NULL) return;
|
||||
int result = sentinelIsQuorumReachable(ri,&usable);
|
||||
|
Reference in New Issue
Block a user