Skip to content

Commit

Permalink
Check less files.
Browse files Browse the repository at this point in the history
  • Loading branch information
koculu committed Aug 24, 2022
1 parent c283495 commit d137c01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ZoneTree/WAL/WriteAheadLogProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public IWriteAheadLog<TKey, TValue> GetOrCreateWAL<TKey, TValue>(
// None = 3 (no file)
for (var i = 0; i < 3; ++i)
{
if ((WriteAheadLogMode)i == walMode)
continue;
if (FileStreamProvider.FileExists(walPath + i))
{
walMode = (WriteAheadLogMode)i;
Expand Down

0 comments on commit d137c01

Please sign in to comment.