From 3fd4baf1e77f125a306d57b788b72de5026c0564 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 10 Jun 2016 09:15:01 +0200 Subject: [PATCH] Fixed typo in Sentinel compareSlavesForPromotion() comment. --- src/sentinel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentinel.c b/src/sentinel.c index 2371b2b3..4d5f84a9 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -3874,7 +3874,7 @@ int compareSlavesForPromotion(const void *a, const void *b) { return (*sa)->slave_priority - (*sb)->slave_priority; /* If priority is the same, select the slave with greater replication - * offset (processed more data frmo the master). */ + * offset (processed more data from the master). */ if ((*sa)->slave_repl_offset > (*sb)->slave_repl_offset) { return -1; /* a < b */ } else if ((*sa)->slave_repl_offset < (*sb)->slave_repl_offset) {