Skip to content

Fix failed reads returning a buffer they never got #24

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

barr-israel
Copy link

When a read fails, it is not allocated a buffer and the BID is set to 0, before this fix, this causes the program to return buffer 0 to the available buffers and can cause multiple future SQEs to get the same buffer 0.

Fixes #23

When a read fails, it is not allocated a buffer and the BID is set to 0, before this fix, this causes the program to return buffer 0 to the available buffers and can cause multiple future SQEs to get the same buffer 0.
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.

Returning the buffer on a failed read results in errors
1 participant