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
b01b32b3
Commit
b01b32b3
authored
Jan 15, 2016
by
antirez
Browse files
Test: Handle LOADING in restart_instance.
parent
5432fc81
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/instances.tcl
View file @
b01b32b3
...
@@ -495,5 +495,17 @@ proc restart_instance {type id} {
...
@@ -495,5 +495,17 @@ proc restart_instance {type id} {
set link
[
redis 127.0.0.1 $port
]
set link
[
redis 127.0.0.1 $port
]
$link reconnect 1
$link reconnect 1
set_instance_attrib $type $id link $link
set_instance_attrib $type $id link $link
# Make sure the instance is not loading the dataset when this
# function returns.
while 1
{
catch
{[
$link
ping
]}
retval
if
{[
string match
{
*LOADING*
}
$retval
]}
{
after 100
continue
}
else
{
break
}
}
}
}
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