提交 363c0f67 编写于 作者: A antirez

Test: fix attach_to_replication_stream to handle newlines.

上级 f29e3848
......@@ -470,8 +470,11 @@ proc attach_to_replication_stream {} {
flush $s
# Get the count
set count [gets $s]
set prefix [string range $count 0 0]
while 1 {
set count [gets $s]
set prefix [string range $count 0 0]
if {$prefix ne {}} break; # Newlines are allowed as PINGs.
}
if {$prefix ne {$}} {
error "attach_to_replication_stream error. Received '$count' as count."
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册