Explorar o código

Disabled sqlite pooling

JPVenson hai 6 meses
pai
achega
d4aca84581

+ 1 - 1
Jellyfin.Server.Implementations/Extensions/ServiceCollectionExtensions.cs

@@ -21,7 +21,7 @@ public static class ServiceCollectionExtensions
         serviceCollection.AddPooledDbContextFactory<JellyfinDbContext>((serviceProvider, opt) =>
         serviceCollection.AddPooledDbContextFactory<JellyfinDbContext>((serviceProvider, opt) =>
         {
         {
             var applicationPaths = serviceProvider.GetRequiredService<IApplicationPaths>();
             var applicationPaths = serviceProvider.GetRequiredService<IApplicationPaths>();
-            opt.UseSqlite($"Filename={Path.Combine(applicationPaths.DataPath, "jellyfin.db")}");
+            opt.UseSqlite($"Filename={Path.Combine(applicationPaths.DataPath, "jellyfin.db")};Pooling=false");
         });
         });
 
 
         return serviceCollection;
         return serviceCollection;