summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-03-22 13:03:33 +0100
committerantirez <antirez@gmail.com>2013-03-22 13:03:33 +0100
commitbe7bdd376e62e9a2788cf2b2f7cf43eda02eeeca (patch)
tree545454844fd6723bc1bebd0801feea5f0b4413ba /src
parent813d7cbdd13ef4d332843eefef1b5ef78bf78c7c (diff)
downloadredis-be7bdd376e62e9a2788cf2b2f7cf43eda02eeeca.tar.gz
redis-trib: fix open slot correction.
Slot zero was hardcoded (!)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/redis-trib.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/redis-trib.rb b/src/redis-trib.rb
index a19475c28..d5d166e63 100755
--- a/src/redis-trib.rb
+++ b/src/redis-trib.rb
@@ -407,8 +407,7 @@ class RedisTrib
# Case 1: The slot is in migrating state in one slot, and in
# importing state in 1 slot. That's trivial to address.
if migrating.length == 1 && importing.length == 1
- puts "Moving slot zero to #{importing[1]}"
- move_slot(migrating[0],importing[0],0,:verbose=>true)
+ move_slot(migrating[0],importing[0],slot,:verbose=>true)
else
puts "Sorry, Redis-trib can't fix this slot yet (work in progress)"
end