superfly / litefs

FUSE-based file system for replicating SQLite databases across a cluster of machines
Apache License 2.0
3.95k stars 95 forks source link

Prevent WAL writes when using EXCLUSIVE locking mode #426

Closed benbjohnson closed 8 months ago

benbjohnson commented 8 months ago

This pull request adds a check to ensure that an exclusive lock has been acquired for the WRITE lock byte when attempting to write to the WAL.

Fixes https://github.com/superfly/litefs/issues/425