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
0c62d955
Commit
0c62d955
authored
Sep 08, 2015
by
Salvatore Sanfilippo
Browse files
Merge pull request #2695 from rogerlz/unstable
redis-sentinel crash if ckquorum command is executed without args
parents
8e555374
ef29748d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
0c62d955
...
@@ -3041,6 +3041,7 @@ void sentinelCommand(client *c) {
...
@@ -3041,6 +3041,7 @@ void sentinelCommand(client *c) {
sentinelRedisInstance
*
ri
;
sentinelRedisInstance
*
ri
;
int
usable
;
int
usable
;
if
(
c
->
argc
!=
3
)
goto
numargserr
;
if
((
ri
=
sentinelGetMasterByNameOrReplyError
(
c
,
c
->
argv
[
2
]))
if
((
ri
=
sentinelGetMasterByNameOrReplyError
(
c
,
c
->
argv
[
2
]))
==
NULL
)
return
;
==
NULL
)
return
;
int
result
=
sentinelIsQuorumReachable
(
ri
,
&
usable
);
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