aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SynchronousMode.cs
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2022-10-07 07:50:14 +0200
committerGitHub <noreply@github.com>2022-10-07 07:50:14 +0200
commit9ff918cb142f837bd55e1f87aba3f68f7de295e4 (patch)
tree75ad827497aeb9d1dd6af47d97bfe9f6fd13b5c4 /Emby.Server.Implementations/Data/SynchronousMode.cs
parent803972a76f6f8eb590b2de06662f7e83ce40273d (diff)
parent87d460909f8019d7701fe39dd6b9b23594a6cffd (diff)
Merge pull request #8505 from JJS/CompilerWarnings
Diffstat (limited to 'Emby.Server.Implementations/Data/SynchronousMode.cs')
-rw-r--r--Emby.Server.Implementations/Data/SynchronousMode.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Data/SynchronousMode.cs b/Emby.Server.Implementations/Data/SynchronousMode.cs
new file mode 100644
index 000000000..cde524e2e
--- /dev/null
+++ b/Emby.Server.Implementations/Data/SynchronousMode.cs
@@ -0,0 +1,30 @@
+namespace Emby.Server.Implementations.Data;
+
+/// <summary>
+/// The disk synchronization mode, controls how aggressively SQLite will write data
+/// all the way out to physical storage.
+/// </summary>
+public enum SynchronousMode
+{
+ /// <summary>
+ /// SQLite continues without syncing as soon as it has handed data off to the operating system.
+ /// </summary>
+ Off = 0,
+
+ /// <summary>
+ /// SQLite database engine will still sync at the most critical moments.
+ /// </summary>
+ Normal = 1,
+
+ /// <summary>
+ /// SQLite database engine will use the xSync method of the VFS
+ /// to ensure that all content is safely written to the disk surface prior to continuing.
+ /// </summary>
+ Full = 2,
+
+ /// <summary>
+ /// EXTRA synchronous is like FULL with the addition that the directory containing a rollback journal
+ /// is synced after that journal is unlinked to commit a transaction in DELETE mode.
+ /// </summary>
+ Extra = 3
+}