If GetPage@LSN fails, print an error to the log, too.

This commit is contained in:
Heikki Linnakangas
2021-03-26 00:00:07 +02:00
committed by Stas Kelvich
parent d42f2b431f
commit 6e29523fba

View File

@@ -260,7 +260,10 @@ pub fn get_page_at_lsn(tag: BufferTag, lsn: u64) -> Result<Bytes, Box<dyn Error>
// failed to reconstruct it. WAL redo should've logged that error already.
page_img = match &entry_content.page_image {
Some(p) => p.clone(),
None => { return Err("could not apply WAL to reconstruct page image".into()); }
None => {
error!("could not apply WAL to reconstruct page image for GetPage@LSN request");
return Err("could not apply WAL to reconstruct page image".into());
}
};
} else {