pageserver: suppress layer download warnings during shutdown

This commit is contained in:
John Spray
2024-06-26 13:08:59 +00:00
parent ca2f7d06b2
commit 895ecef318

View File

@@ -3336,7 +3336,13 @@ impl Timeline {
.await
{
Ok(result) => result,
Err(e) => return Err(PageReconstructError::from(e)),
Err(e) => {
return Err(if self.cancel.is_cancelled() {
PageReconstructError::Cancelled
} else {
PageReconstructError::Other(e)
})
}
};
cont_lsn = lsn_floor;
*read_count += 1;