mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
fix comment "b>a" to "a > b"
This commit is contained in:
parent
2a57ad5d90
commit
93a09877fe
@ -3878,7 +3878,7 @@ int compareSlavesForPromotion(const void *a, const void *b) {
|
|||||||
if ((*sa)->slave_repl_offset > (*sb)->slave_repl_offset) {
|
if ((*sa)->slave_repl_offset > (*sb)->slave_repl_offset) {
|
||||||
return -1; /* a < b */
|
return -1; /* a < b */
|
||||||
} else if ((*sa)->slave_repl_offset < (*sb)->slave_repl_offset) {
|
} 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
|
/* If the replication offset is the same select the slave with that has
|
||||||
|
Loading…
x
Reference in New Issue
Block a user