Browse files

redis-trib: call MIGRATE via r.client.call as fix for redis-rb API ch…

…anges.

See issue #1593.

Thanks to @badboy for suggesting the direct client.call fix.
  • Loading branch information...
1 parent df32eb6 commit cc11d103c09eb5a34f9097adf014b5193a8c9df3 @antirez committed Mar 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/redis-trib.rb
View
2 src/redis-trib.rb
@@ -705,7 +705,7 @@ def move_slot(source,target,slot,o={})
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
}

0 comments on commit cc11d10

Please sign in to comment.