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 locking when applying LTX file to replica in WAL mode #148

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

benbjohnson
Copy link
Collaborator

Previously, replicas would only lock WAL_READ0_LOCK when applying changes because they always checkpointed. However, it looks like all read locks need to be acquired to avoid a malformed database error in the client.

Fixes #142

@benbjohnson benbjohnson merged commit cdf0094 into main Oct 28, 2022
@benbjohnson benbjohnson deleted the fix-wal-read-lock branch October 28, 2022 16:07
@benbjohnson benbjohnson added this to the v0.3.0 milestone Nov 16, 2022
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.

Seeing "malformed database" error in WAL replicas
1 participant