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
18622391
Commit
18622391
authored
Mar 27, 2013
by
antirez
Browse files
Test: read_from_replication_stream, workaround for 2.6
parent
f8791a15
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_helper.tcl
View file @
18622391
...
...
@@ -438,9 +438,15 @@ proc read_from_replication_stream {s} {
after 100
}
fconfigure $s -blocking 1
set count
[
string range $count 1 end
]
# Workaround for Redis 2.6, not always using the new protocol in the
# replication channel
(
this was fixed in >= 2.8
)
.
if
{[
string tolower
[
lindex
[
split $count
]
0
]]
eq
{
select
}}
{
return $count
}
# Return a list of arguments for the command.
set count
[
string range $count 1 end
]
set res
{}
for
{
set j 0
}
{
$j
< $count
}
{
incr j
}
{
read $s 1
...
...
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