Merge pull request #206 from Sonarr/osxfullfsync

Changed sqlite to use full fsync on osx
This commit is contained in:
Taloth 2015-03-28 12:23:24 +01:00
commit 42a3ff2625
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,11 @@ namespace NzbDrone.Core.Datastore
connectionBuilder.Pooling = true; connectionBuilder.Pooling = true;
connectionBuilder.Version = 3; connectionBuilder.Version = 3;
if (OsInfo.IsOsx)
{
connectionBuilder.Add("Full FSync", true);
}
return connectionBuilder.ConnectionString; return connectionBuilder.ConnectionString;
} }
} }