mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 17:47:08 +00:00
Merge pull request #206 from Sonarr/osxfullfsync
Changed sqlite to use full fsync on osx
This commit is contained in:
commit
42a3ff2625
1 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,11 @@ private static string GetConnectionString(string dbPath)
|
|||
connectionBuilder.JournalMode = OsInfo.IsOsx ? SQLiteJournalModeEnum.Truncate : SQLiteJournalModeEnum.Wal;
|
||||
connectionBuilder.Pooling = true;
|
||||
connectionBuilder.Version = 3;
|
||||
|
||||
if (OsInfo.IsOsx)
|
||||
{
|
||||
connectionBuilder.Add("Full FSync", true);
|
||||
}
|
||||
|
||||
return connectionBuilder.ConnectionString;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue