Skip to content

Commit

Permalink
More printing and assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
arpad-m committed Jun 17, 2024
1 parent f645196 commit 104a0ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pageserver/src/tenant/blob_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ impl<const BUFFERED: bool> BlobWriter<BUFFERED> {
None => (BYTE_UNCOMPRESSED, len, srcbuf.slice(..).into_inner()),
};
let mut len_buf = (len_written as u32).to_be_bytes();
assert_eq!(len_buf[0] & 0xf0, 0);
len_buf[0] |= high_bit_mask;
io_buf.extend_from_slice(&len_buf[..]);
(self.write_all(io_buf, ctx).await, srcbuf)
Expand Down
1 change: 1 addition & 0 deletions pageserver/src/tenant/storage_layer/image_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ impl ImageLayer {
content_a, content_b,
"mismatch for key={key} cmp={cmp:?} and {path_a}:{path_b}"
);
println!("match for key={key} cmp={cmp:?} from {path_a}");
}
Ok(())
}
Expand Down

0 comments on commit 104a0ae

Please sign in to comment.