feat: Add segment_id metadata to WriteSummary

pull/24376/head
Carol (Nichols || Goulding) 2022-11-23 10:56:52 -05:00
parent 8618264fe6
commit 40dd575de9
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
2 changed files with 4 additions and 1 deletions

View File

@ -87,9 +87,10 @@ impl OpenSegmentFileWriter {
self.bytes_written += bytes_written;
Ok(WriteSummary {
checksum,
total_bytes: self.bytes_written,
bytes_written,
segment_id: self.id,
checksum,
})
}

View File

@ -378,6 +378,8 @@ pub struct WriteSummary {
pub total_bytes: usize,
/// Number of bytes written to segment in this write
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: u32,
}