mirror of
https://github.com/fluencelabs/redis
synced 2025-04-30 04:52:13 +00:00
SENTINEL SET master quorum implemented.
This commit is contained in:
parent
89a731b3aa
commit
a2c9d38a9f
@ -2669,6 +2669,12 @@ void sentinelSetCommand(redisClient *c) {
|
||||
sdsfree(ri->auth_pass);
|
||||
ri->auth_pass = strlen(value) ? sdsnew(value) : NULL;
|
||||
changes++;
|
||||
} else if (!strcasecmp(option,"quorum")) {
|
||||
/* quorum <count> */
|
||||
if (getLongLongFromObject(o,&ll) == REDIS_ERR || ll <= 0)
|
||||
goto badfmt;
|
||||
ri->quorum = ll;
|
||||
changes++;
|
||||
} else {
|
||||
addReplyErrorFormat(c,"Unknown option '%s' for SENTINEL SET",
|
||||
option);
|
||||
|
Loading…
x
Reference in New Issue
Block a user