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
d5763dce
You need to sign in or sign up before continuing.
Commit
d5763dce
authored
Jan 14, 2014
by
antirez
Browse files
SENTINEL SET master quorum implemented.
parent
fe86f890
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
d5763dce
...
@@ -2667,6 +2667,12 @@ void sentinelSetCommand(redisClient *c) {
...
@@ -2667,6 +2667,12 @@ void sentinelSetCommand(redisClient *c) {
sdsfree
(
ri
->
auth_pass
);
sdsfree
(
ri
->
auth_pass
);
ri
->
auth_pass
=
strlen
(
value
)
?
sdsnew
(
value
)
:
NULL
;
ri
->
auth_pass
=
strlen
(
value
)
?
sdsnew
(
value
)
:
NULL
;
changes
++
;
changes
++
;
}
else
if
(
!
strcasecmp
(
option
,
"quorum"
))
{
/* quorum <count> */
if
(
getLongLongFromObject
(
o
,
&
ll
)
==
REDIS_ERR
||
ll
<=
0
)
goto
badfmt
;
ri
->
quorum
=
ll
;
changes
++
;
}
else
{
}
else
{
addReplyErrorFormat
(
c
,
"Unknown option '%s' for SENTINEL SET"
,
addReplyErrorFormat
(
c
,
"Unknown option '%s' for SENTINEL SET"
,
option
);
option
);
...
...
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