diff --git a/src/sentinel.c b/src/sentinel.c index 4951503b..4d5f84a9 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -3878,7 +3878,7 @@ int compareSlavesForPromotion(const void *a, const void *b) { if ((*sa)->slave_repl_offset > (*sb)->slave_repl_offset) { return -1; /* a < b */ } else if ((*sa)->slave_repl_offset < (*sb)->slave_repl_offset) { - return 1; /* b > a */ + return 1; /* a > b */ } /* If the replication offset is the same select the slave with that has