1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

fixed: changed Journaling for osx to prevent db corruption

This commit is contained in:
Keivan Beigi 2015-01-05 17:09:40 -08:00
parent d4331e9470
commit 9d8011042e

View File

@ -29,7 +29,7 @@ private static string GetConnectionString(string dbPath)
connectionBuilder.DataSource = dbPath;
connectionBuilder.CacheSize = (int)-10.Megabytes();
connectionBuilder.DateTimeKind = DateTimeKind.Utc;
connectionBuilder.JournalMode = SQLiteJournalModeEnum.Wal;
connectionBuilder.JournalMode = OsInfo.IsOsx ? SQLiteJournalModeEnum.Truncate : SQLiteJournalModeEnum.Wal;
connectionBuilder.Pooling = true;
return connectionBuilder.ConnectionString;