add more context for error message

This commit is contained in:
anastasia
2021-05-25 12:10:12 +03:00
parent 1e08fda040
commit 2b7963056c

View File

@@ -565,7 +565,13 @@ impl Timeline for RocksTimeline {
self.put_page_image(tag, lsn, page_img.clone());
} else {
// No base image, and no WAL record. Huh?
bail!("no page image or WAL record for requested page");
bail!(
"no page image or WAL record for requested page {} blk {} at lsn {}({})",
tag.rel,
tag.blknum,
req_lsn,
lsn
);
}
// FIXME: assumes little-endian. Only used for the debugging log though
let page_lsn_hi =