1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-26 17:47:08 +00:00

Fixed: Changed sqlite to use full fsync on osx to reduce the chance of corruption at the cost of some performance.

This commit is contained in:
Taloth Saldono 2015-02-15 22:55:17 +01:00
parent 1837ba94cc
commit dea58ed663

View file

@ -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;
}