Skip to content

Commit

Permalink
Update trailer.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Jun 9, 2024
1 parent 2a0895e commit 4a7368b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/segment/trailer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ impl SegmentFileTrailer {
// Parse pointers
let offsets = FileOffsets::deserialize(&mut reader)?;

// IMPORTANT: sizeof(offsets) ---------v
let remaining_padding = TRAILER_SIZE - 5 * std::mem::size_of::<u64>() - TRAILER_MAGIC.len();
reader.seek_relative(remaining_padding as i64)?;

Expand Down

0 comments on commit 4a7368b

Please sign in to comment.