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
28c86fe4
Commit
28c86fe4
authored
Jun 18, 2014
by
antirez
Browse files
Sentienl/Redis test: enable link reconnection in instances.tcl.
parent
3cba0c3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/instances.tcl
View file @
28c86fe4
...
...
@@ -74,11 +74,13 @@ proc spawn_instance {type base_port count {conf {}}} {
}
# Push the instance into the right list
set link
[
redis 127.0.0.1 $port
]
$link reconnect 1
lappend ::$
{
type
}
_instances
[
list
\
pid $pid
\
host 127.0.0.1
\
port $port
\
link
[
redis 127.0.0.1 $port
]
\
link
$link
\
]
}
}
...
...
@@ -398,6 +400,8 @@ proc restart_instance {type id} {
}
# Connect with it with a fresh link
set_instance_attrib $type $id link
[
redis 127.0.0.1 $port
]
set link
[
redis 127.0.0.1 $port
]
$link reconnect 1
set_instance_attrib $type $id link $link
}
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