Skip to content

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
corylanou pushed a commit that referenced this pull request Sep 26, 2025
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