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
24158d14
Commit
24158d14
authored
Nov 12, 2013
by
antirez
Browse files
Sentinel: added config-epoch to SENTINEL masters output.
parent
d2bc6dc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
24158d14
...
...
@@ -1939,6 +1939,10 @@ void addReplySentinelRedisInstance(redisClient *c, sentinelRedisInstance *ri) {
/* Only masters */
if
(
ri
->
flags
&
SRI_MASTER
)
{
addReplyBulkCString
(
c
,
"config-epoch"
);
addReplyBulkLongLong
(
c
,
ri
->
config_epoch
);
fields
++
;
addReplyBulkCString
(
c
,
"num-slaves"
);
addReplyBulkLongLong
(
c
,
dictSize
(
ri
->
slaves
));
fields
++
;
...
...
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