Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
2a57ad5d
Commit
2a57ad5d
authored
Jun 10, 2016
by
antirez
Browse files
Fixed typo in Sentinel compareSlavesForPromotion() comment.
parent
243c9dc1
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
2a57ad5d
...
@@ -3874,7 +3874,7 @@ int compareSlavesForPromotion(const void *a, const void *b) {
...
@@ -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 fr
m
o the master). */
* offset (processed more data fro
m
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) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment