-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix xadd inconsistency with redis implementation
This commit aligns id generation with the official "specification/docu": > Both quantities are 64-bit numbers. When an ID is auto-generated, the > first part is the Unix time in milliseconds of the Redis instance > generating the ID. The second part is just a sequence number and is > used in order to distinguish IDs generated in the same millisecond. Main motivation is that the current implementation was flawed when using capped streams by creating invalid ids (e.g. generating the same id twice) as well as re-using mocked tests and run them in an e2e fashion. Tests were added to cover the additional funcionality. Links: https://redis.io/commands/xadd/
- Loading branch information
Showing
3 changed files
with
184 additions
and
43 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
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