1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Add a busy timeout of 5 seconds

This commit is contained in:
Leland Lucius
2021-04-08 13:53:50 -05:00
parent 354e62e033
commit cceaf0d162

View File

@@ -25,6 +25,7 @@ Paul Licameli -- split from ProjectFileIO.cpp
// Configuration to provide "safe" connections // Configuration to provide "safe" connections
static const char *SafeConfig = static const char *SafeConfig =
"PRAGMA <schema>.busy_timeout = 5000;"
"PRAGMA <schema>.locking_mode = SHARED;" "PRAGMA <schema>.locking_mode = SHARED;"
"PRAGMA <schema>.synchronous = NORMAL;" "PRAGMA <schema>.synchronous = NORMAL;"
"PRAGMA <schema>.journal_mode = WAL;" "PRAGMA <schema>.journal_mode = WAL;"
@@ -32,6 +33,7 @@ static const char *SafeConfig =
// Configuration to provide "Fast" connections // Configuration to provide "Fast" connections
static const char *FastConfig = static const char *FastConfig =
"PRAGMA <schema>.busy_timeout = 5000;"
"PRAGMA <schema>.locking_mode = SHARED;" "PRAGMA <schema>.locking_mode = SHARED;"
"PRAGMA <schema>.synchronous = OFF;" "PRAGMA <schema>.synchronous = OFF;"
"PRAGMA <schema>.journal_mode = OFF;"; "PRAGMA <schema>.journal_mode = OFF;";