pageserver: fix dropping backtrace from CreateImageLayersError

This commit is contained in:
John Spray
2024-07-05 10:34:48 +00:00
parent bc87e78f1e
commit 9fc9553e1f

View File

@@ -726,6 +726,9 @@ impl From<CreateImageLayersError> for CompactionError {
fn from(e: CreateImageLayersError) -> Self {
match e {
CreateImageLayersError::Cancelled => CompactionError::ShuttingDown,
CreateImageLayersError::Other(e) => {
CompactionError::Other(e.context("create image layers"))
}
_ => CompactionError::Other(e.into()),
}
}