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
1 changed files with 5 additions and 0 deletions

View File

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