From 21b4d6c23ec9cc8347fc853432ebd660f2fa384c Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 14 Jan 2014 09:23:26 +0100 Subject: [PATCH] SENTINEL SET master quorum implemented. --- src/sentinel.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sentinel.c b/src/sentinel.c index ca538908d..46ee96d62 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -2667,6 +2667,12 @@ void sentinelSetCommand(redisClient *c) { sdsfree(ri->auth_pass); ri->auth_pass = strlen(value) ? sdsnew(value) : NULL; changes++; + } else if (!strcasecmp(option,"quorum")) { + /* quorum */ + if (getLongLongFromObject(o,&ll) == REDIS_ERR || ll <= 0) + goto badfmt; + ri->quorum = ll; + changes++; } else { addReplyErrorFormat(c,"Unknown option '%s' for SENTINEL SET", option);