From cc11d103c09eb5a34f9097adf014b5193a8c9df3 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 11 Mar 2014 16:10:13 +0100 Subject: [PATCH] redis-trib: call MIGRATE via r.client.call as fix for redis-rb API changes. See issue #1593. Thanks to @badboy for suggesting the direct client.call fix. --- 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 bff4cab1..cfe04d20 100755 --- a/src/redis-trib.rb +++ b/src/redis-trib.rb @@ -705,7 +705,7 @@ class RedisTrib keys = source.r.cluster("getkeysinslot",slot,10) break if keys.length == 0 keys.each{|key| - source.r.migrate(target.info[:host],target.info[:port],key,0,1000) + source.r.client.call(["migrate",target.info[:host],target.info[:port],key,0,1000]) print "." if o[:verbose] STDOUT.flush }