From b8d8b9ec4130fcb275d3b63b733f1bb8050a579d Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 20 Feb 2013 15:29:44 +0100 Subject: [PATCH] redis-trib: set the migrating slot in the correct way when resharding. --- src/redis-trib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-trib.rb b/src/redis-trib.rb index aafbe91f..6ff44b27 100755 --- a/src/redis-trib.rb +++ b/src/redis-trib.rb @@ -354,7 +354,7 @@ class RedisTrib # to the target node that does not yet know it is importing this slot. print "Moving slot #{slot} from #{source.info_string}: "; STDOUT.flush target.r.cluster("setslot",slot,"importing",source.info[:name]) - source.r.cluster("setslot",slot,"migrating",source.info[:name]) + source.r.cluster("setslot",slot,"migrating",target.info[:name]) # Migrate all the keys from source to target using the MIGRATE command while true keys = source.r.cluster("getkeysinslot",slot,10)