Commit 18622391 authored by antirez's avatar antirez
Browse files

Test: read_from_replication_stream, workaround for 2.6

parent f8791a15
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment