Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
fa81cc26
Commit
fa81cc26
authored
Jul 24, 2015
by
Rogerio Goncalves
Committed by
antirez
Sep 08, 2015
Browse files
Check args before run ckquorum. Fix issue #2635
parent
06894b8f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
fa81cc26
...
...
@@ -2809,6 +2809,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
);
...
...
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