summaryrefslogtreecommitdiff
path: root/src/redis-trib.rb
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-02-21 13:06:59 +0100
committerantirez <antirez@gmail.com>2013-02-21 13:06:59 +0100
commit5fd9f701da8612f70fd120fde26e39df89924452 (patch)
tree51e13c8bf2483da1724a1079cc47259882e10ca9 /src/redis-trib.rb
parent7898bf4b7ec636bf2c61a0d56e13ce63a781781b (diff)
downloadredis-5fd9f701da8612f70fd120fde26e39df89924452.tar.gz
redis-trib: move instance vars in the right class.
Diffstat (limited to 'src/redis-trib.rb')
-rwxr-xr-xsrc/redis-trib.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/redis-trib.rb b/src/redis-trib.rb
index a34a2ec8b..526bb7822 100755
--- a/src/redis-trib.rb
+++ b/src/redis-trib.rb
@@ -39,14 +39,12 @@ class ClusterNode
exit 1
end
@r = nil
- @fix = false
@info = {}
@info[:host] = s[0]
@info[:port] = s[1]
@info[:slots] = {}
@dirty = false # True if we need to flush slots info into node.
@friends = []
- @errors = []
end
def friends
@@ -210,6 +208,8 @@ end
class RedisTrib
def initialize
@nodes = []
+ @fix = false
+ @errors = []
end
def check_arity(req_args, num_args)