mirror of
https://github.com/fluencelabs/redis
synced 2025-04-07 01:51:05 +00:00
Cluster: redis-trib fix: handling of another trivial case.
This commit is contained in:
parent
4a64286c36
commit
8251d2d150
@ -472,6 +472,9 @@ class RedisTrib
|
|||||||
elsif migrating.length == 1 && importing.length == 0
|
elsif migrating.length == 1 && importing.length == 0
|
||||||
xputs ">>> Setting #{slot} as STABLE"
|
xputs ">>> Setting #{slot} as STABLE"
|
||||||
migrating[0].r.cluster("setslot",slot,"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
|
else
|
||||||
xputs "[ERR] Sorry, Redis-trib can't fix this slot yet (work in progress)"
|
xputs "[ERR] Sorry, Redis-trib can't fix this slot yet (work in progress)"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user