ソースを参照

Increased the max journal_size_limit to reduce the number of truncation operations.

Mark Lopez 2 年 前
コミット
29889159e8
1 ファイル変更2 行追加1 行削除
  1. 2 1
      Emby.Server.Implementations/Data/BaseSqliteRepository.cs

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

@@ -73,9 +73,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.