Skip to content

Commit

Permalink
Fix Checkpoint pragma not being set to 1000 on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
lbnascimento committed May 4, 2020
1 parent be1becd commit 17d317e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions LiteDB/Engine/Engine/Upgrade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

1 comment on commit 17d317e

@lbnascimento
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix for #1664 (and many others)

Please sign in to comment.