From 93a09877fe9295206b48febd6520fef02f92e1b3 Mon Sep 17 00:00:00 2001 From: andyli Date: Tue, 7 Jun 2016 14:42:50 +0800 Subject: [PATCH] fix comment "b>a" to "a > b" --- src/sentinel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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