Guy Benoish 1b5bf40c20 Blocking XREAD[GROUP] should always reply with valid data (or timeout)
This commit solves the following bug:
127.0.0.1:6379> XGROUP CREATE x grp $ MKSTREAM
OK
127.0.0.1:6379> XADD x 666 f v
"666-0"
127.0.0.1:6379> XREADGROUP GROUP grp Alice BLOCK 0 STREAMS x >
1) 1) "x"
   2) 1) 1) "666-0"
         2) 1) "f"
            2) "v"
127.0.0.1:6379> XADD x 667 f v
"667-0"
127.0.0.1:6379> XDEL x 667
(integer) 1
127.0.0.1:6379> XREADGROUP GROUP grp Alice BLOCK 0 STREAMS x >
1) 1) "x"
   2) (empty array)

The root cause is that we use s->last_id in streamCompareID
while we should use the last *valid* ID
2020-01-10 13:16:14 +01:00
..
2020-01-10 13:16:03 +01:00
2019-11-13 10:14:45 +08:00
2018-10-05 18:29:23 +02:00
2019-11-20 20:39:04 -05:00
2019-07-17 16:40:24 +03:00
2020-01-10 13:16:14 +01:00
2018-11-25 08:10:26 +00:00
2019-10-07 09:09:32 +03:00
2020-01-01 18:10:39 +01:00
2019-02-24 21:38:15 +01:00
2018-10-17 12:57:21 +02:00
2019-09-17 06:18:01 +09:00
2019-10-24 14:24:55 +03:00
2019-10-24 14:24:55 +03:00
2019-11-19 17:23:47 +08:00
2019-11-14 12:48:54 +01:00
2019-10-02 11:30:20 +02:00
2018-11-11 18:49:55 +00:00
2019-12-05 13:37:11 +00:00
2019-12-19 17:27:29 +01:00
2019-05-08 12:53:56 +08:00