Skip to content

Commit

Permalink
Intentionally break BlockCursor's ability for compressed reads
Browse files Browse the repository at this point in the history
  • Loading branch information
arpad-m committed Jul 9, 2024
1 parent 9067bfe commit 4739eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pageserver/src/tenant/blob_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl<'a> BlockCursor<'a> {
}

if let Some(dstbuf) = compression {
if compression_bits == BYTE_ZSTD {
if compression_bits == BYTE_ZSTD + 1 {
let mut decoder = async_compression::tokio::write::ZstdDecoder::new(dstbuf);
decoder.write_all(buf_to_write).await?;
decoder.flush().await?;
Expand Down

0 comments on commit 4739eba

Please sign in to comment.