Do not apply records with LSN smaller than LSN of cached image in del… (#1672)

* Do not apply records with LSN smaller than LSN of cached image in delta layer

* Do not apply records with LSN smaller than LSN of cached image in delta layer
This commit is contained in:
Konstantin Knizhnik
2022-05-12 07:56:02 +03:00
committed by GitHub
parent c864091035
commit 2bde77fced

View File

@@ -254,6 +254,9 @@ impl Layer for DeltaLayer {
return false;
}
let entry_lsn = DeltaKey::extract_lsn_from_buf(key);
if entry_lsn < lsn_range.start {
return false;
}
offsets.push((entry_lsn, blob_ref.pos()));
!blob_ref.will_init()