mirror of
https://github.com/safing/portmaster
synced 2025-04-12 15:09:09 +00:00
Add a 3s busy timeout to SQLite database backend
This commit is contained in:
parent
b9a9129e81
commit
7b05ed82b2
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ func openSQLite(name, location string, printStmts bool) (*SQLite, error) {
|
|||
"PRAGMA journal_mode=WAL;", // Corruption safe write ahead log for txs.
|
||||
"PRAGMA synchronous=NORMAL;", // Best for WAL.
|
||||
"PRAGMA cache_size=-10000;", // 10MB Cache.
|
||||
"PRAGMA busy_timeout=3000;", // 3s (3000ms) timeout for locked tables.
|
||||
}
|
||||
for _, pragma := range pragmas {
|
||||
_, err := db.Exec(pragma)
|
||||
|
|
Loading…
Add table
Reference in a new issue