aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Program.cs
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2019-07-02 11:56:13 -0700
committerGitHub <noreply@github.com>2019-07-02 11:56:13 -0700
commite722801f801bfcb7395d3cd394bdc99258edbf3b (patch)
tree4cdfa6f1c6917dee0abd3743f53dccd39f17d14e /Jellyfin.Server/Program.cs
parent6cf9204219616d76798685c3a44661619f68a82e (diff)
parent29ae7b9aeb46ac297ba5c3253d73cd4cd325c042 (diff)
Merge pull request #956 from Bond-009/db
Simplify db code
Diffstat (limited to 'Jellyfin.Server/Program.cs')
-rw-r--r--Jellyfin.Server/Program.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs
index 91752a16d..11c09db98 100644
--- a/Jellyfin.Server/Program.cs
+++ b/Jellyfin.Server/Program.cs
@@ -24,6 +24,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Serilog;
using Serilog.AspNetCore;
+using SQLitePCL;
using ILogger = Microsoft.Extensions.Logging.ILogger;
namespace Jellyfin.Server
@@ -126,7 +127,11 @@ namespace Jellyfin.Server
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; });
#pragma warning restore CA5359
- SQLitePCL.Batteries_V2.Init();
+ Batteries_V2.Init();
+ if (raw.sqlite3_enable_shared_cache(1) != raw.SQLITE_OK)
+ {
+ Console.WriteLine("WARN: Failed to enable shared cache for SQLite");
+ }
using (var appHost = new CoreAppHost(
appPaths,