Skip to content

Commit

Permalink
fix: add highestPosition to logStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpuppa committed May 14, 2024
1 parent 61f5231 commit c3d3523
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ public void append(
logEntries.add(blockBuffer);
final int index = logEntries.size();
positionIndexMapping.put(lowestPosition, index);
listener.onWrite(index);
listener.onWrite(index, highestPosition);

listener.onCommit(index);
listener.onCommit(index, highestPosition);
commitListeners.forEach(CommitListener::onCommit);
}

Expand Down

0 comments on commit c3d3523

Please sign in to comment.