Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc committed Sep 30, 2019
1 parent ddcc338 commit bb4e357
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cs/src/core/Index/FasterLog/FasterLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public FasterLog(FasterLogSettings logSettings)
logSettings.LogDevice.FileName + ".commit");

epoch = new LightEpoch();
CommittedUntilAddress = Constants.kFirstValidAddress;
allocator = new BlittableAllocator<Empty, byte>(
logSettings.GetLogSettings(), null,
null, epoch, e => Commit(e));
Expand Down Expand Up @@ -316,6 +317,7 @@ private void Restore()
allocator.RestoreHybridLog(info.FlushedUntilAddress,
info.FlushedUntilAddress - allocator.GetOffsetInPage(info.FlushedUntilAddress),
info.BeginAddress);
CommittedUntilAddress = info.FlushedUntilAddress;
}
}
}

0 comments on commit bb4e357

Please sign in to comment.