Update pageserver/src/walingest.rs

Co-authored-by: Joonas Koivunen <joonas@neon.tech>
This commit is contained in:
Konstantin Knizhnik
2023-12-07 21:27:42 +02:00
committed by Konstantin Knizhnik
parent 4cfa2fdca5
commit 0dad8e427d

View File

@@ -488,7 +488,7 @@ impl WalIngest {
decompressed_img_len,
)
.map_err(|msg| PageReconstructError::Other(anyhow::anyhow!(msg)))?;
assert!(decompressed.len() == decompressed_img_len);
assert_eq!(decompressed.len(), decompressed_img_len);
image.extend_from_slice(&decompressed);
} else {
image.extend_from_slice(&decoded.record[img_offs..img_offs + img_len]);