Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
35507e78
You need to sign in or sign up before continuing.
Commit
35507e78
authored
Sep 08, 2015
by
antirez
Browse files
Sentinel: command arity check added where missing.
parent
fa81cc26
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
35507e78
...
...
@@ -2791,6 +2791,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
;
...
...
@@ -2798,6 +2799,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
,
"%@"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment