mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
hunt down the cancelled within createimagelayerserror
This commit is contained in:
@@ -742,11 +742,15 @@ pub(crate) enum WaitLsnError {
|
||||
impl From<CreateImageLayersError> for CompactionError {
|
||||
fn from(e: CreateImageLayersError) -> Self {
|
||||
match e {
|
||||
CreateImageLayersError::Cancelled => CompactionError::ShuttingDown,
|
||||
CreateImageLayersError::Cancelled
|
||||
| CreateImageLayersError::GetVectoredError(GetVectoredError::Cancelled)
|
||||
| CreateImageLayersError::PageReconstructError(PageReconstructError::Cancelled) => {
|
||||
CompactionError::ShuttingDown
|
||||
}
|
||||
CreateImageLayersError::Other(e) => {
|
||||
CompactionError::Other(e.context("create image layers"))
|
||||
}
|
||||
_ => CompactionError::Other(e.into()),
|
||||
value => CompactionError::Other(value.into()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user