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 OpenConn WAL handling #34

Merged
merged 4 commits into from
Jan 10, 2022
Merged

Conversation

anacrolix
Copy link
Contributor

Connection needs to be set to block on busy before WAL journal mode is set in case it hasn't already set by another connection.

Journal-mode statement needs to be finalized before closing connection on error.

See also crawshaw/sqlite#113.

anacrolix and others added 3 commits January 10, 2022 00:01
Connection needs to be set to block on busy before WAL journal mode is set in case it hasn't already set by another connection.

Journal-mode statement needs to be finalized before closing connection on error.
Copy link
Owner

@zombiezen zombiezen left a comment

Choose a reason for hiding this comment

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

Tweaked a little bit, but LGTM. Thanks!

@zombiezen zombiezen enabled auto-merge (squash) January 10, 2022 05:17
@zombiezen zombiezen merged commit c6d6f6a into zombiezen:main Jan 10, 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.

2 participants