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
97212551
Commit
97212551
authored
Feb 11, 2014
by
antirez
Browse files
Cluster: redis-trib fix: handling of another trivial case.
parent
6d550f2d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
97212551
...
...
@@ -472,6 +472,9 @@ class RedisTrib
elsif
migrating
.
length
==
1
&&
importing
.
length
==
0
xputs
">>> Setting
#{
slot
}
as STABLE"
migrating
[
0
].
r
.
cluster
(
"setslot"
,
slot
,
"stable"
)
elsif
migrating
.
length
==
0
&&
importing
.
length
==
1
xputs
">>> Setting
#{
slot
}
as STABLE"
importing
[
0
].
r
.
cluster
(
"setslot"
,
slot
,
"stable"
)
else
xputs
"[ERR] Sorry, Redis-trib can't fix this slot yet (work in progress)"
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