Skip to content

Recover from invalid database on startup#184

Merged
benbjohnson merged 1 commit intomainfrom
recover-db-open
Nov 15, 2022
Merged

Recover from invalid database on startup#184
benbjohnson merged 1 commit intomainfrom
recover-db-open

Conversation

@benbjohnson
Copy link
Collaborator

This pull request automatically recovers the database when an invalid database file is found in the database directory. This can occur when SQLite creates the file but doesn't write to it or when a partial write is flushed to disk. If the database file doesn't pass basic header validation then the database is automatically removed and it can be snapshotted from the current primary.

Fixes #172

@benbjohnson benbjohnson merged commit 3dac5fc into main Nov 15, 2022
@benbjohnson benbjohnson deleted the recover-db-open branch November 15, 2022 21:26
@benbjohnson benbjohnson added this to the v0.3.0 milestone Nov 16, 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

1 participant