feat: Add segment_id metadata to WriteSummary
parent
8618264fe6
commit
40dd575de9
|
@ -87,9 +87,10 @@ impl OpenSegmentFileWriter {
|
||||||
self.bytes_written += bytes_written;
|
self.bytes_written += bytes_written;
|
||||||
|
|
||||||
Ok(WriteSummary {
|
Ok(WriteSummary {
|
||||||
checksum,
|
|
||||||
total_bytes: self.bytes_written,
|
total_bytes: self.bytes_written,
|
||||||
bytes_written,
|
bytes_written,
|
||||||
|
segment_id: self.id,
|
||||||
|
checksum,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -378,6 +378,8 @@ pub struct WriteSummary {
|
||||||
pub total_bytes: usize,
|
pub total_bytes: usize,
|
||||||
/// Number of bytes written to segment in this write
|
/// Number of bytes written to segment in this write
|
||||||
pub bytes_written: usize,
|
pub bytes_written: usize,
|
||||||
|
/// Which segment file this entry was written to
|
||||||
|
pub segment_id: SegmentId,
|
||||||
/// Checksum for the compressed data written to segment
|
/// Checksum for the compressed data written to segment
|
||||||
checksum: u32,
|
checksum: u32,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue