incremental image layer

Signed-off-by: Alex Chi <chi@neon.tech>
This commit is contained in:
Alex Chi
2023-06-26 15:25:35 -04:00
parent f86ff5e54b
commit 43d564ce0a
2 changed files with 10 additions and 1 deletions

View File

@@ -703,6 +703,11 @@ impl LayerMap {
frozen_layer.dump(verbose, ctx)?;
}
println!("l0_deltas:");
for layer in &self.l0_delta_layers {
layer.dump(verbose, ctx)?;
}
println!("historic_layers:");
for layer in self.iter_historic_layers() {
layer.dump(verbose, ctx)?;

View File

@@ -213,7 +213,11 @@ impl Layer for ImageLayer {
reconstruct_state.img = Some((self.lsn, value));
Ok(ValueReconstructResult::Complete)
} else {
Ok(ValueReconstructResult::Missing)
if self.desc.is_incremental {
Ok(ValueReconstructResult::Continue)
} else {
Ok(ValueReconstructResult::Missing)
}
}
}