mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
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:
@@ -32,6 +32,11 @@ namespace NzbDrone.Core.Datastore
|
|||||||
connectionBuilder.JournalMode = OsInfo.IsOsx ? SQLiteJournalModeEnum.Truncate : SQLiteJournalModeEnum.Wal;
|
connectionBuilder.JournalMode = OsInfo.IsOsx ? SQLiteJournalModeEnum.Truncate : SQLiteJournalModeEnum.Wal;
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user