diff options
author | Sascha Roland <sroland@ngncc.de> | 2018-08-29 17:53:47 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2018-09-04 13:13:36 +0200 |
commit | c1e9186f069e0b3aa1507e0e86a16d5001ea5420 (patch) | |
tree | 37545214b296f0a41f99a6ac0fd3350c039cefef /tests/support/server.tcl | |
parent | d60c17cbb3ae0a4b1a435f0b6fc986a60449ebec (diff) | |
download | redis-c1e9186f069e0b3aa1507e0e86a16d5001ea5420.tar.gz |
#5299 Fix blocking XREAD for streams that ran dry
The conclusion, that a xread request can be answered syncronously in
case that the stream's last_id is larger than the passed last-received-id
parameter, assumes, that there must be entries present, which could be
returned immediately.
This assumption fails for empty streams that actually contained some
entries which got removed by xdel, ... .
As result, the client is answered synchronously with an empty result,
instead of blocking for new entries to arrive.
An additional check for a non-empty stream is required.
Diffstat (limited to 'tests/support/server.tcl')
0 files changed, 0 insertions, 0 deletions