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
d6e13478
Commit
d6e13478
authored
May 11, 2015
by
antirez
Browse files
Sentinel: add link refcount to instance description
parent
1029276c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
d6e13478
...
@@ -2538,6 +2538,10 @@ void addReplySentinelRedisInstance(redisClient *c, sentinelRedisInstance *ri) {
...
@@ -2538,6 +2538,10 @@ void addReplySentinelRedisInstance(redisClient *c, sentinelRedisInstance *ri) {
addReplyBulkLongLong
(
c
,
ri
->
link
->
pending_commands
);
addReplyBulkLongLong
(
c
,
ri
->
link
->
pending_commands
);
fields
++
;
fields
++
;
addReplyBulkCString
(
c
,
"link-refcount"
);
addReplyBulkLongLong
(
c
,
ri
->
link
->
refcount
);
fields
++
;
if
(
ri
->
flags
&
SRI_FAILOVER_IN_PROGRESS
)
{
if
(
ri
->
flags
&
SRI_FAILOVER_IN_PROGRESS
)
{
addReplyBulkCString
(
c
,
"failover-state"
);
addReplyBulkCString
(
c
,
"failover-state"
);
addReplyBulkCString
(
c
,(
char
*
)
sentinelFailoverStateStr
(
ri
->
failover_state
));
addReplyBulkCString
(
c
,(
char
*
)
sentinelFailoverStateStr
(
ri
->
failover_state
));
...
...
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