Skip to content

Commit

Permalink
Delta layers should never use compression for now
Browse files Browse the repository at this point in the history
  • Loading branch information
arpad-m committed Jun 19, 2024
1 parent 3d6bc95 commit 22c35d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pageserver/src/tenant/storage_layer/delta_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,9 @@ impl DeltaLayerWriterInner {
ctx: &RequestContext,
) -> (Vec<u8>, anyhow::Result<()>) {
assert!(self.lsn_range.start <= lsn);
let (val, res) = self.blob_writer.write_blob(val, ctx).await;
// We don't want to use compression in delta layer creation
let compression = None;
let (val, res) = self.blob_writer.write_blob_maybe_compressed(val, ctx, compression).await;
let off = match res {
Ok(off) => off,
Err(e) => return (val, Err(anyhow::anyhow!(e))),
Expand Down

0 comments on commit 22c35d8

Please sign in to comment.