Skip to content

Commit

Permalink
Invalidate reader on flush
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jun 29, 2024
1 parent ab3bf96 commit cf31b1b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,8 @@ private async ValueTask FlushAndSealAsync(CancellationToken token)
{
Debug.Assert(writer.FilePosition > HeaderSize);

Invalidate();

// use scatter I/O to flush the rest of the partition
if (writer.HasBufferedData)
{
Expand Down

0 comments on commit cf31b1b

Please sign in to comment.