summaryrefslogtreecommitdiff
path: root/src/redis-trib.rb
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-02-11 10:13:18 +0100
committerantirez <antirez@gmail.com>2014-02-11 10:13:18 +0100
commit8251d2d150e454b2783d394eb3f131423b5b89d0 (patch)
tree03a9930a198b01f6189f316cc2ae00980fd2283b /src/redis-trib.rb
parent4a64286c363267acff39b1f2ec9d4b47640871c0 (diff)
downloadredis-8251d2d150e454b2783d394eb3f131423b5b89d0.tar.gz
Cluster: redis-trib fix: handling of another trivial case.
Diffstat (limited to 'src/redis-trib.rb')
-rwxr-xr-xsrc/redis-trib.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/redis-trib.rb b/src/redis-trib.rb
index 36bd05d97..ec3c416bb 100755
--- a/src/redis-trib.rb
+++ b/src/redis-trib.rb
@@ -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