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
3fd4baf1
Commit
3fd4baf1
authored
Jun 10, 2016
by
antirez
Browse files
Fixed typo in Sentinel compareSlavesForPromotion() comment.
parent
8d029a59
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
3fd4baf1
...
...
@@ -3874,7 +3874,7 @@ int compareSlavesForPromotion(const void *a, const void *b) {
return
(
*
sa
)
->
slave_priority
-
(
*
sb
)
->
slave_priority
;
/* 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
)
{
return
-
1
;
/* a < b */
}
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