add a reasonable assertion

This commit is contained in:
Christian Schwarz
2024-06-13 18:15:33 +02:00
parent f787eb1d3b
commit 312c62cf97

View File

@@ -822,6 +822,7 @@ impl DeltaLayerInner {
if entry_lsn < lsn_range.start {
return false;
}
assert!(entry_lsn <= search_key.lsn(), "certain because of how backwards visit direction works");
offsets.push((entry_lsn, blob_ref.pos()));
!blob_ref.will_init()