diff --git a/pageserver/src/pgdatadir_mapping.rs b/pageserver/src/pgdatadir_mapping.rs index 5efbe7eab1..1a72b1cf8f 100644 --- a/pageserver/src/pgdatadir_mapping.rs +++ b/pageserver/src/pgdatadir_mapping.rs @@ -1493,7 +1493,10 @@ impl<'a> DatadirModification<'a> { let old_val = match self.get(key, ctx).await { Ok(val) => val, Err(PageReconstructError::Other(err)) - if err.to_string().contains("could not find data for key") => + if err.to_string().contains("could not find data for key") + || err + .to_string() + .contains("could not find layer with more data for key") => { // TODO: make could not found a separate error type, avoid anyhow wrapping Bytes::new()