Skip to content

Commit

Permalink
Use setter once
Browse files Browse the repository at this point in the history
  • Loading branch information
sakno committed Jul 5, 2024
1 parent 65ec0ba commit 6ec5abf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,11 @@ internal void Initialize(long lastIndexHint)
fileOffset = previousEnd + LogEntryMetadata.Size;
new LogEntryMetadata(default, 0L, fileOffset, 0L).Format(metadataBuffer);
}

writer.FilePosition = fileOffset;

metadataBuffer.CopyTo(metadataTable.Slice(footerOffset));
}

writer.FilePosition = fileOffset;
}
else
{
Expand Down

0 comments on commit 6ec5abf

Please sign in to comment.