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
bc922dc6
Commit
bc922dc6
authored
Feb 28, 2013
by
antirez
Browse files
redis-trib: skip nodes without slots when creating the config signature.
parent
64942fca
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
bc922dc6
...
...
@@ -200,6 +200,7 @@ class ClusterNode
@r
.
cluster
(
"nodes"
).
each_line
{
|
l
|
s
=
l
.
split
slots
=
s
[
7
..-
1
].
select
{
|
x
|
x
[
0
..
0
]
!=
"["
}
next
if
slots
.
length
==
0
config
<<
s
[
0
]
+
":"
+
(
slots
.
sort
.
join
(
","
))
}
config
.
sort
.
join
(
"|"
)
...
...
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