Bläddra i källkod

Merge pull request #1817 from joshuaboniface/change-pragma-mode

Change PRAGMA mode from WAL to TRUNCATE
Joshua M. Boniface 6 år sedan
förälder
incheckning
f63d591b08
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      Emby.Server.Implementations/Data/BaseSqliteRepository.cs

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

@@ -53,10 +53,10 @@ namespace Emby.Server.Implementations.Data
         protected virtual int? CacheSize => null;
         protected virtual int? CacheSize => null;
 
 
         /// <summary>
         /// <summary>
-        /// Gets the journal mode.
+        /// Gets the journal mode. <see href="https://www.sqlite.org/pragma.html#pragma_journal_mode" />
         /// </summary>
         /// </summary>
         /// <value>The journal mode.</value>
         /// <value>The journal mode.</value>
-        protected virtual string JournalMode => "WAL";
+        protected virtual string JournalMode => "TRUNCATE";
 
 
         /// <summary>
         /// <summary>
         /// Gets the page size.
         /// Gets the page size.