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
8c4c5090
Commit
8c4c5090
authored
Apr 11, 2011
by
Salvatore Sanfilippo
Browse files
added known nodes info in CLUSTER INFO
parent
b800a3ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
8c4c5090
...
@@ -1192,11 +1192,13 @@ void clusterCommand(redisClient *c) {
...
@@ -1192,11 +1192,13 @@ void clusterCommand(redisClient *c) {
"cluster_slots_ok:%d
\r\n
"
"cluster_slots_ok:%d
\r\n
"
"cluster_slots_pfail:%d
\r\n
"
"cluster_slots_pfail:%d
\r\n
"
"cluster_slots_fail:%d
\r\n
"
"cluster_slots_fail:%d
\r\n
"
"cluster_known_nodes:%lu
\r\n
"
,
statestr
[
server
.
cluster
.
state
],
,
statestr
[
server
.
cluster
.
state
],
slots_assigned
,
slots_assigned
,
slots_ok
,
slots_ok
,
slots_pfail
,
slots_pfail
,
slots_fail
slots_fail
,
dictSize
(
server
.
cluster
.
nodes
)
);
);
addReplySds
(
c
,
sdscatprintf
(
sdsempty
(),
"$%lu
\r\n
"
,
addReplySds
(
c
,
sdscatprintf
(
sdsempty
(),
"$%lu
\r\n
"
,
(
unsigned
long
)
sdslen
(
info
)));
(
unsigned
long
)
sdslen
(
info
)));
...
...
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