Skip to content

Commit

Permalink
Merge pull request litedb-org#118 from jaked122/master
Browse files Browse the repository at this point in the history
Fixed mscorlib exception which arises from journalling not being enabled
  • Loading branch information
mbdavid committed Feb 10, 2016
2 parents 79676e7 + 1b58753 commit 9422879
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions LiteDB/DbEngine/Disks/FileDiskService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ public virtual void Dispose()

private void TryRecovery()
{
if (!_journalEnabled)return;
// if I can open journal file, test FINISH_POSITION. If no journal, do not call action()
this.OpenExclusiveFile(_journalFilename, (journal) =>
{
Expand Down

0 comments on commit 9422879

Please sign in to comment.