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
032aeb87
Commit
032aeb87
authored
Oct 07, 2015
by
antirez
Browse files
Test: fix attach_to_replication_stream to handle newlines.
parent
77df3b06
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/test_helper.tcl
View file @
032aeb87
...
...
@@ -464,8 +464,11 @@ proc attach_to_replication_stream {} {
flush $s
# Get the count
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."
}
...
...
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