mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-28 02:27:13 +00: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:
parent
1837ba94cc
commit
dea58ed663
1 changed files with 5 additions and 0 deletions
|
@ -33,6 +33,11 @@ private static string GetConnectionString(string dbPath)
|
||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue