Browse Source

Get write connection for vacuum

Bond_009 2 years ago
parent
commit
8dba3a44fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Emby.Server.Implementations/Data/BaseSqliteRepository.cs

+ 1 - 1
Emby.Server.Implementations/Data/BaseSqliteRepository.cs

@@ -124,7 +124,7 @@ namespace Emby.Server.Implementations.Data
             ReadConnections = new ConnectionPool(ReadConnectionsCount, CreateReadConnection);
 
             // Configuration and pragmas can affect VACUUM so it needs to be last.
-            using (var connection = GetConnection(true))
+            using (var connection = GetConnection())
             {
                 connection.Execute("VACUUM");
             }