From dea58ed6635e5c5639d06c62fb60cbe9a19d38c9 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sun, 15 Feb 2015 22:55:17 +0100 Subject: [PATCH] Fixed: Changed sqlite to use full fsync on osx to reduce the chance of corruption at the cost of some performance. --- src/NzbDrone.Core/Datastore/ConnectionStringFactory.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Core/Datastore/ConnectionStringFactory.cs b/src/NzbDrone.Core/Datastore/ConnectionStringFactory.cs index 8be38c09b..fc1c72a94 100644 --- a/src/NzbDrone.Core/Datastore/ConnectionStringFactory.cs +++ b/src/NzbDrone.Core/Datastore/ConnectionStringFactory.cs @@ -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; }