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
b08c9dd2
Commit
b08c9dd2
authored
Sep 29, 2011
by
antirez
Browse files
redis-trib: when loading node info also fetch the output of CLUSTER INFO.
parent
f639f991
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
b08c9dd2
...
...
@@ -96,6 +96,15 @@ class ClusterNode
end
}
@dirty
=
false
@r
.
cluster
(
"info"
).
split
(
"
\n
"
).
each
{
|
e
|
k
,
v
=
e
.
split
(
":"
)
k
=
k
.
to_sym
if
k
!=
:cluster_state
@info
[
k
]
=
v
.
to_i
else
@info
[
k
]
=
v
end
}
elsif
o
[
:getfriends
]
@friends
<<
info
end
...
...
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