Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
93a09877
Commit
93a09877
authored
Jun 07, 2016
by
andyli
Committed by
antirez
Jun 10, 2016
Browse files
fix comment "b>a" to "a > b"
parent
2a57ad5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
93a09877
...
@@ -3878,7 +3878,7 @@ int compareSlavesForPromotion(const void *a, const void *b) {
...
@@ -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
...
...
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