Commit a2c9d38a authored by antirez's avatar antirez
Browse files

SENTINEL SET master quorum implemented.

parent 89a731b3
...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment