lib/redis_failover/node.rb in redis_failover-0.6.0 vs lib/redis_failover/node.rb in redis_failover-0.7.0
- old
+ new
@@ -51,14 +51,14 @@
perform_operation do |redis|
redis.lpush(wait_key, '1')
end
end
- def make_slave!(master)
+ def make_slave!(node)
perform_operation do |redis|
- unless slave_of?(master)
- redis.slaveof(master.host, master.port)
- logger.info("#{self} is now a slave of master #{master}")
+ unless slave_of?(node)
+ redis.slaveof(node.host, node.port)
+ logger.info("#{self} is now a slave of #{node}")
wakeup
end
end
end