Browse Source

Merge pull request #9667 from Silvenga/restore-default-journal-size

Bond-009 2 years ago
parent
commit
aae22865a0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Emby.Server.Implementations/Data/BaseSqliteRepository.cs

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

@@ -82,9 +82,10 @@ namespace Emby.Server.Implementations.Data
 
         /// <summary>
         /// Gets the journal size limit. <see href="https://www.sqlite.org/pragma.html#pragma_journal_size_limit" />.
+        /// The default (-1) is overriden to prevent unconstrained WAL size, as reported by users.
         /// </summary>
         /// <value>The journal size limit.</value>
-        protected virtual int? JournalSizeLimit => 0;
+        protected virtual int? JournalSizeLimit => 134_217_728; // 128MiB
 
         /// <summary>
         /// Gets the page size.