mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Add busy timeout to database connection (#3593)
This commit is contained in:
@@ -213,7 +213,7 @@ func (db *Database) Close() error {
|
||||
|
||||
func (db *Database) open(disableForeignKeys bool) (*sqlx.DB, error) {
|
||||
// https://github.com/mattn/go-sqlite3
|
||||
url := "file:" + db.dbPath + "?_journal=WAL&_sync=NORMAL"
|
||||
url := "file:" + db.dbPath + "?_journal=WAL&_sync=NORMAL&_busy_timeout=50"
|
||||
if !disableForeignKeys {
|
||||
url += "&_fk=true"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user