Преглед изворни кода

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

Bond-009 пре 2 година
родитељ
комит
aae22865a0
1 измењених фајлова са 2 додато и 1 уклоњено
  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>
         /// <summary>
         /// Gets the journal size limit. <see href="https://www.sqlite.org/pragma.html#pragma_journal_size_limit" />.
         /// 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>
         /// </summary>
         /// <value>The journal size limit.</value>
         /// <value>The journal size limit.</value>
-        protected virtual int? JournalSizeLimit => 0;
+        protected virtual int? JournalSizeLimit => 134_217_728; // 128MiB
 
 
         /// <summary>
         /// <summary>
         /// Gets the page size.
         /// Gets the page size.