From 510b29f2a412990bfb4efb5a1a8062c66b290ff8 Mon Sep 17 00:00:00 2001 From: JPVenson Date: Tue, 12 Nov 2024 07:16:24 +0000 Subject: [PATCH] Fixed dangling connections keept open on window migration --- Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs index a440bc6d6c..64c926e514 100644 --- a/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs +++ b/Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs @@ -272,6 +272,8 @@ public class MigrateLibraryDb : IMigrationRoutine connection.Close(); _logger.LogInformation("Migration of the Library.db done."); _logger.LogInformation("Move {0} to {1}.", libraryDbPath, libraryDbPath + ".old"); + + SqliteConnection.ClearAllPools(); File.Move(libraryDbPath, libraryDbPath + ".old"); _logger.LogInformation("Migrating Library db took {0}.", migrationTotalTime);