diff --git a/LiteDB/Engine/Engine/Upgrade.cs b/LiteDB/Engine/Engine/Upgrade.cs index ac199887c..e35ff69ab 100644 --- a/LiteDB/Engine/Engine/Upgrade.cs +++ b/LiteDB/Engine/Engine/Upgrade.cs @@ -64,6 +64,9 @@ public static bool Upgrade(string filename, string password = null) // after rebuild, copy log bytes into data file engine.Checkpoint(); + + // re-enable auto-checkpoint pragma + engine.Pragma(Pragmas.CHECKPOINT, 1000); } }