Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use safe checkpointing before snapshots
The intention of the code is to do a checkpoint before starting to write out the snapshot. Executing a manual checkpoint will at worst make Litestream lose the track of the WAL as it will in specific circumtances flush out the single page in the WAL file out. Using the public checkpoint function of the database to issue a managed passive checkpoint will ensure the sequence table is written after and the position of the WAL isn't lost. Fixes benbjohnson#521
- Loading branch information