Commit 93a09877 authored by andyli's avatar andyli Committed by antirez
Browse files

fix comment "b>a" to "a > b"

parent 2a57ad5d
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment