From 22c35d8412321bb95d7b6e0ca93ffcb81490661c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arpad=20M=C3=BCller?= Date: Wed, 19 Jun 2024 02:32:42 +0200 Subject: [PATCH] Delta layers should never use compression for now --- pageserver/src/tenant/storage_layer/delta_layer.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pageserver/src/tenant/storage_layer/delta_layer.rs b/pageserver/src/tenant/storage_layer/delta_layer.rs index 5e01ecd71de0d..dfafe7bda7e50 100644 --- a/pageserver/src/tenant/storage_layer/delta_layer.rs +++ b/pageserver/src/tenant/storage_layer/delta_layer.rs @@ -452,7 +452,9 @@ impl DeltaLayerWriterInner { ctx: &RequestContext, ) -> (Vec, 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))),