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 release of non-OFD locks #93

Merged
merged 1 commit into from
Feb 28, 2021
Merged

Fix release of non-OFD locks #93

merged 1 commit into from
Feb 28, 2021

Conversation

benbjohnson
Copy link
Owner

Overview

This pull request removes short-lived os.Open() calls on the database file because this can cause locks to be released when os.File.Close() is later called if the operating system does not support OFD (Open File Descriptor) locks.

The SQLite source provides a lengthy rant on the brokenness of locks that's worth reading as well.

Fixes #79

This commit removes short-lived `os.Open()` calls on the database
file because this can cause locks to be released when `os.File.Close()`
is later called if the operating system does not support OFD
(Open File Descriptor) locks.
@benbjohnson benbjohnson marked this pull request as ready for review February 28, 2021 14:10
@benbjohnson benbjohnson merged commit 9cee128 into main Feb 28, 2021
@benbjohnson benbjohnson deleted the non-ofd-locks branch February 28, 2021 14:28
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.

cannot verify wal state: ...-wal: no such file or directory
1 participant