mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Fixed typo in Sentinel compareSlavesForPromotion() comment.
This commit is contained in:
parent
243c9dc151
commit
2a57ad5d90
@ -3874,7 +3874,7 @@ int compareSlavesForPromotion(const void *a, const void *b) {
|
|||||||
return (*sa)->slave_priority - (*sb)->slave_priority;
|
return (*sa)->slave_priority - (*sb)->slave_priority;
|
||||||
|
|
||||||
/* If priority is the same, select the slave with greater replication
|
/* 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) {
|
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user