mirror of
https://github.com/fluencelabs/redis
synced 2025-04-02 07:41:04 +00:00
Sentinel: command arity check added where missing.
This commit is contained in:
parent
0c62d95538
commit
33769f840c
@ -3023,6 +3023,7 @@ void sentinelCommand(client *c) {
|
|||||||
addReply(c,shared.ok);
|
addReply(c,shared.ok);
|
||||||
}
|
}
|
||||||
} else if (!strcasecmp(c->argv[1]->ptr,"flushconfig")) {
|
} else if (!strcasecmp(c->argv[1]->ptr,"flushconfig")) {
|
||||||
|
if (c->argc != 2) goto numargserr;
|
||||||
sentinelFlushConfig();
|
sentinelFlushConfig();
|
||||||
addReply(c,shared.ok);
|
addReply(c,shared.ok);
|
||||||
return;
|
return;
|
||||||
@ -3030,6 +3031,7 @@ void sentinelCommand(client *c) {
|
|||||||
/* SENTINEL REMOVE <name> */
|
/* SENTINEL REMOVE <name> */
|
||||||
sentinelRedisInstance *ri;
|
sentinelRedisInstance *ri;
|
||||||
|
|
||||||
|
if (c->argc != 3) goto numargserr;
|
||||||
if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2]))
|
if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2]))
|
||||||
== NULL) return;
|
== NULL) return;
|
||||||
sentinelEvent(LL_WARNING,"-monitor",ri,"%@");
|
sentinelEvent(LL_WARNING,"-monitor",ri,"%@");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user