mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Check args before run ckquorum. Fix issue #2635
This commit is contained in:
parent
64fcd0e6ff
commit
ef29748d0d
@ -3041,6 +3041,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);
|
||||||
|
Loading…
Reference in New Issue
Block a user