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
041ab044
Commit
041ab044
authored
Sep 14, 2016
by
antirez
Browse files
Trim comment to 80 cols.
parent
a636aeac
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
041ab044
...
@@ -3674,7 +3674,7 @@ char *sentinelGetLeader(sentinelRedisInstance *master, uint64_t epoch) {
...
@@ -3674,7 +3674,7 @@ char *sentinelGetLeader(sentinelRedisInstance *master, uint64_t epoch) {
serverAssert
(
master
->
flags
&
(
SRI_O_DOWN
|
SRI_FAILOVER_IN_PROGRESS
));
serverAssert
(
master
->
flags
&
(
SRI_O_DOWN
|
SRI_FAILOVER_IN_PROGRESS
));
counters
=
dictCreate
(
&
leaderVotesDictType
,
NULL
);
counters
=
dictCreate
(
&
leaderVotesDictType
,
NULL
);
voters
=
dictSize
(
master
->
sentinels
)
+
1
;
/* All the other sentinels and me.
*/
voters
=
dictSize
(
master
->
sentinels
)
+
1
;
/* All the other sentinels and me.*/
/* Count other sentinels votes */
/* Count other sentinels votes */
di
=
dictGetIterator
(
master
->
sentinels
);
di
=
dictGetIterator
(
master
->
sentinels
);
...
...
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