mirror of
https://github.com/fluencelabs/redis
synced 2025-05-29 18:21:20 +00:00
Test: Handle LOADING in restart_instance.
This commit is contained in:
parent
5a402ce2d5
commit
4300a973b8
@ -494,5 +494,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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user