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
60889a36
Commit
60889a36
authored
Sep 11, 2014
by
antirez
Browse files
Sentinel sentinelGetLeader() top comment improved.
parent
7a41df06
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
60889a36
...
@@ -3224,9 +3224,9 @@ int sentinelLeaderIncr(dict *counters, char *runid) {
...
@@ -3224,9 +3224,9 @@ int sentinelLeaderIncr(dict *counters, char *runid) {
/* Scan all the Sentinels attached to this master to check if there
/* Scan all the Sentinels attached to this master to check if there
* is a leader for the specified epoch.
* is a leader for the specified epoch.
*
*
* To be a leader for a given epoch, we should have the majori
f
y of
* To be a leader for a given epoch, we should have the majori
t
y of
* the Sentinels we know
that reported the same instance as
* the Sentinels we know
(ever seen since the last SENTINEL RESET) that
* leader for the same epoch. */
*
reported the same instance as
leader for the same epoch. */
char
*
sentinelGetLeader
(
sentinelRedisInstance
*
master
,
uint64_t
epoch
)
{
char
*
sentinelGetLeader
(
sentinelRedisInstance
*
master
,
uint64_t
epoch
)
{
dict
*
counters
;
dict
*
counters
;
dictIterator
*
di
;
dictIterator
*
di
;
...
...
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