mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -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;
|
||||
int usable;
|
||||
|
||||
if (c->argc != 3) goto numargserr;
|
||||
if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2]))
|
||||
== NULL) return;
|
||||
int result = sentinelIsQuorumReachable(ri,&usable);
|
||||
|
Loading…
Reference in New Issue
Block a user