-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: stream and id order in xread command The syntax for an XREAD command is ``` XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] id [id ...] ``` Before this fix the implementation used ``` XREAD [COUNT count] [BLOCK milliseconds] STREAMS key id [key id...] ``` The new approach should be equally fast and provide the correct results. Also adjusted existing tests. Links: https://redis.io/commands/xread/ * fix: BLOCKING behaviour to not return immediately It needs to wait until the timeElapsed is greater or eq the defined blocking time. The test was enhanced to spot the issue and verify the fix worked. This uncovered another issue with the way found events are evaluated to always return even without any event received. This problem is also fixed by this commit. --------- Co-authored-by: Sven Sterbling <[email protected]>
- Loading branch information
Showing
2 changed files
with
68 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters