mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 09:30:55 +00:00
redis-trib: move instance vars in the right class.
This commit is contained in:
parent
7898bf4b7e
commit
5fd9f701da
@ -39,14 +39,12 @@ class ClusterNode
|
|||||||
exit 1
|
exit 1
|
||||||
end
|
end
|
||||||
@r = nil
|
@r = nil
|
||||||
@fix = false
|
|
||||||
@info = {}
|
@info = {}
|
||||||
@info[:host] = s[0]
|
@info[:host] = s[0]
|
||||||
@info[:port] = s[1]
|
@info[:port] = s[1]
|
||||||
@info[:slots] = {}
|
@info[:slots] = {}
|
||||||
@dirty = false # True if we need to flush slots info into node.
|
@dirty = false # True if we need to flush slots info into node.
|
||||||
@friends = []
|
@friends = []
|
||||||
@errors = []
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def friends
|
def friends
|
||||||
@ -210,6 +208,8 @@ end
|
|||||||
class RedisTrib
|
class RedisTrib
|
||||||
def initialize
|
def initialize
|
||||||
@nodes = []
|
@nodes = []
|
||||||
|
@fix = false
|
||||||
|
@errors = []
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_arity(req_args, num_args)
|
def check_arity(req_args, num_args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user