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
efe51dff
Commit
efe51dff
authored
Feb 22, 2013
by
antirez
Browse files
redis-trib: specify single node address when fixing coverage.
parent
915e8133
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
efe51dff
...
@@ -280,7 +280,7 @@ class RedisTrib
...
@@ -280,7 +280,7 @@ class RedisTrib
not_covered
.
each
{
|
slot
|
not_covered
.
each
{
|
slot
|
nodes
=
nodes_with_keys_in_slot
(
slot
)
nodes
=
nodes_with_keys_in_slot
(
slot
)
slots
[
slot
]
=
nodes
slots
[
slot
]
=
nodes
puts
"Slot
#{
slot
}
has keys in
#{
nodes
.
length
}
nodes"
puts
"Slot
#{
slot
}
has keys in
#{
nodes
.
length
}
nodes
:
#{
nodes
.
join
}
"
}
}
none
=
slots
.
select
{
|
k
,
v
|
v
.
length
==
0
}
none
=
slots
.
select
{
|
k
,
v
|
v
.
length
==
0
}
...
...
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