File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
src/NzbDrone.Core/Datastore Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,16 @@ public string GetDatabasePath(string connectionString)
41
41
42
42
private static string GetConnectionString ( string dbPath )
43
43
{
44
- var connectionBuilder = new SQLiteConnectionStringBuilder ( ) ;
45
-
46
- connectionBuilder . DataSource = dbPath ;
47
- connectionBuilder . CacheSize = ( int ) - 20000 ;
48
- connectionBuilder . DateTimeKind = DateTimeKind . Utc ;
49
- connectionBuilder . JournalMode = OsInfo . IsOsx ? SQLiteJournalModeEnum . Truncate : SQLiteJournalModeEnum . Wal ;
50
- connectionBuilder . Pooling = true ;
51
- connectionBuilder . Version = 3 ;
44
+ var connectionBuilder = new SQLiteConnectionStringBuilder
45
+ {
46
+ DataSource = dbPath ,
47
+ CacheSize = ( int ) - 20000 ,
48
+ DateTimeKind = DateTimeKind . Utc ,
49
+ JournalMode = OsInfo . IsOsx ? SQLiteJournalModeEnum . Truncate : SQLiteJournalModeEnum . Wal ,
50
+ Pooling = true ,
51
+ Version = 3 ,
52
+ BusyTimeout = 100
53
+ } ;
52
54
53
55
if ( OsInfo . IsOsx )
54
56
{
You can’t perform that action at this time.
0 commit comments