mirror of
https://github.com/fluencelabs/redis
synced 2025-06-01 11:31:20 +00:00
Sentinel: command arity check added where missing.
This commit is contained in:
parent
3915e1c71a
commit
718a826c51
@ -2792,6 +2792,7 @@ void sentinelCommand(redisClient *c) {
|
||||
addReply(c,shared.ok);
|
||||
}
|
||||
} else if (!strcasecmp(c->argv[1]->ptr,"flushconfig")) {
|
||||
if (c->argc != 2) goto numargserr;
|
||||
sentinelFlushConfig();
|
||||
addReply(c,shared.ok);
|
||||
return;
|
||||
@ -2799,6 +2800,7 @@ void sentinelCommand(redisClient *c) {
|
||||
/* SENTINEL REMOVE <name> */
|
||||
sentinelRedisInstance *ri;
|
||||
|
||||
if (c->argc != 3) goto numargserr;
|
||||
if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2]))
|
||||
== NULL) return;
|
||||
sentinelEvent(REDIS_WARNING,"-monitor",ri,"%@");
|
||||
|
Loading…
x
Reference in New Issue
Block a user