提交 28c86fe4 编写于 作者: A antirez

Sentienl/Redis test: enable link reconnection in instances.tcl.

上级 3cba0c3e
......@@ -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
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册