mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 10:32:14 +00:00
Sentienl/Redis test: enable link reconnection in instances.tcl.
This commit is contained in:
parent
670d164fbe
commit
5260ce1260
@ -74,11 +74,13 @@ proc spawn_instance {type base_port count {conf {}}} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Push the instance into the right list
|
# Push the instance into the right list
|
||||||
|
set link [redis 127.0.0.1 $port]
|
||||||
|
$link reconnect 1
|
||||||
lappend ::${type}_instances [list \
|
lappend ::${type}_instances [list \
|
||||||
pid $pid \
|
pid $pid \
|
||||||
host 127.0.0.1 \
|
host 127.0.0.1 \
|
||||||
port $port \
|
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
|
# 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user