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
1baa1530
Commit
1baa1530
authored
Mar 22, 2013
by
antirez
Browse files
redis-trib: added some more output for check.
parent
77bba91b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
1baa1530
...
...
@@ -258,7 +258,7 @@ class RedisTrib
end
def
check_cluster
puts
"Performing Cluster Check (using node
#{
@nodes
[
0
]
}
)"
puts
"
>>>
Performing Cluster Check (using node
#{
@nodes
[
0
]
}
)"
show_nodes
check_config_consistency
check_open_slots
...
...
@@ -276,6 +276,7 @@ class RedisTrib
end
def
check_slots_coverage
puts
">>> Check slots coverage..."
slots
=
covered_slots
if
slots
.
length
==
ClusterHashSlots
puts
"[OK] All
#{
ClusterHashSlots
}
slots covered."
...
...
@@ -288,6 +289,7 @@ class RedisTrib
end
def
check_open_slots
puts
">>> Check for open slots..."
open_slots
=
[]
@nodes
.
each
{
|
n
|
if
n
.
info
[
:migrating
].
size
>
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