SENTINEL SET master quorum implemented.
This commit is contained in:
parent
b279e578fa
commit
21b4d6c23e
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user