From f5efa9bbadd0c56a1b9b6216a0570cb76ab17352 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 11 Sep 2014 19:27:45 +0200 Subject: [PATCH] Sentinel sentinelGetLeader() top comment improved. --- src/sentinel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sentinel.c b/src/sentinel.c index b50e680e5..06f53c128 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -3224,9 +3224,9 @@ int sentinelLeaderIncr(dict *counters, char *runid) { /* Scan all the Sentinels attached to this master to check if there * is a leader for the specified epoch. * - * To be a leader for a given epoch, we should have the majorify of - * the Sentinels we know that reported the same instance as - * leader for the same epoch. */ + * To be a leader for a given epoch, we should have the majority of + * the Sentinels we know (ever seen since the last SENTINEL RESET) that + * reported the same instance as leader for the same epoch. */ char *sentinelGetLeader(sentinelRedisInstance *master, uint64_t epoch) { dict *counters; dictIterator *di;