forked from microsoft/winget-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make SQLite wrapper more resilient (microsoft#4196)
We are seeing some errors from the SQLite usage that appear to largely be related to contention and the `FAIL_FAST` behavior for savepoint errors. This change is attempting to address the issue by making contention less impactful and moving away from `FAIL_FAST`. ## Change - Adds a busy timeout to SQLite connections by default and provides a method to change the value if callers desire. This should prevent small contentions from causing errors. - Moves from using `FAIL_FAST` on critical errors to simply "closing" the connection, making it non-functional for standard use. - No longer requests this failure behavior for savepoint commit errors; the rollback can handle that if needed.
- Loading branch information
Showing
6 changed files
with
198 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.