Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5fd9f701
Commit
5fd9f701
authored
Feb 21, 2013
by
antirez
Browse files
redis-trib: move instance vars in the right class.
parent
7898bf4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-trib.rb
View file @
5fd9f701
...
@@ -39,14 +39,12 @@ class ClusterNode
...
@@ -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
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment