Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sqlite: set connection attributes on open
The symptoms in #17859 indicate that setting the PRAGMAs in individual EXECs outside of a transaction can lead to concurrency issues and failures when the DB is locked. Hence set all PRAGMAs when opening the connection. Move them into individual constants to improve documentation and readability. Further make transactions exclusive as #17859 also mentions an error that the DB is locked during a transaction. [NO NEW TESTS NEEDED] - existing tests cover the code. Fixes: #17859 Signed-off-by: Valentin Rothberg <[email protected]> <MH: Cherry-picked on top of my branch> Signed-off-by: Matthew Heon <[email protected]>
- Loading branch information