Skip to content
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

Fix/segment persistent queues #723

Merged
merged 2 commits into from
Mar 4, 2023

Conversation

hylkevds
Copy link
Collaborator

@hylkevds hylkevds commented Feb 13, 2023

This PR builds on #724, #728 and #722 and contains further fixes from #716:

  • Make a copy of the message buffer (one for each command thread) so access patterns don't interfere across threads

@hylkevds hylkevds force-pushed the fix/segmentPersistentQueues branch 2 times, most recently from 41e4f2d to 79e8003 Compare February 17, 2023 13:57
@hylkevds hylkevds force-pushed the fix/segmentPersistentQueues branch 2 times, most recently from 443b067 to ffdbdf6 Compare February 17, 2023 15:41
@andsel
Copy link
Collaborator

andsel commented Mar 3, 2023

@hylkevds please can you fix the conflicts realigning to the current main so that we can merge it? 🙏

hylkevds added 2 commits March 3, 2023 22:34
Other threads may be reading the same buffer, so we must ensure we have
our own reading position and mark.
@hylkevds hylkevds force-pushed the fix/segmentPersistentQueues branch from ffdbdf6 to dcdab1b Compare March 3, 2023 21:37
Copy link
Collaborator

@andsel andsel left a comment

Choose a reason for hiding this comment

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

LGTM

@andsel andsel merged commit 1934766 into moquette-io:main Mar 4, 2023
@hylkevds hylkevds deleted the fix/segmentPersistentQueues branch April 30, 2024 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants