Merge pull request #206 from Sonarr/osxfullfsync

Changed sqlite to use full fsync on osx
pull/4/head
Taloth 10 years ago
commit 42a3ff2625

@ -32,6 +32,11 @@ namespace NzbDrone.Core.Datastore
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…
Cancel
Save