Commit 3915e1c7 authored by Rogerio Goncalves's avatar Rogerio Goncalves Committed by antirez
Browse files

Check args before run ckquorum. Fix issue #2635

parent ce4c1730
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment