diff --git a/src/segment/writer.rs b/src/segment/writer.rs index a61e140..b54944d 100644 --- a/src/segment/writer.rs +++ b/src/segment/writer.rs @@ -113,6 +113,11 @@ impl Writer { hasher.update(&value); let checksum = hasher.digest(); + // TODO: 2.0.0 formalize blob header + // into struct... store uncompressed len as well + // so we can optimize rollover by avoiding + // repeated compression & decompression + // Write header self.active_writer.write_all(BLOB_HEADER_MAGIC)?;