Skip to content

Fix for Bug: xread in cluster mode calculates slots on wrong arguments #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

voraparth91
Copy link

Example command: XREAD COUNT 2 STREAMS mystream writers 0-0 0-0

In this case, it should calculate slot on mystream and writers while it calculates on 'COUNT'. This is a bug in case of cluster mode.

Solution: now xread is considered a special case where we find all the streams name that are after keyword: STREAMS till ID starts.

Copy link
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code itself is LGTM. Please have a look at the linter errors though and write the code in the code style as the rest of the file. Thanks!

@borsucok
Copy link
Contributor

I think this is solved here: #31

@BridgeAR
Copy link
Member

@voraparth91 thanks a lot for your contribution! This has been superseded by #31.

@BridgeAR BridgeAR closed this May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants