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
a2c9d38a
Commit
a2c9d38a
authored
Jan 14, 2014
by
antirez
Browse files
SENTINEL SET master quorum implemented.
parent
89a731b3
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
a2c9d38a
...
@@ -2669,6 +2669,12 @@ void sentinelSetCommand(redisClient *c) {
...
@@ -2669,6 +2669,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