From 8251d2d150e454b2783d394eb3f131423b5b89d0 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 11 Feb 2014 10:13:18 +0100 Subject: [PATCH] Cluster: redis-trib fix: handling of another trivial case. --- src/redis-trib.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/redis-trib.rb b/src/redis-trib.rb index 36bd05d9..ec3c416b 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