mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-10 06:52:55 +00:00
Fix ancestor layer traversal (#1484)
Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
This commit is contained in:
@@ -1466,10 +1466,10 @@ impl LayeredTimeline {
|
||||
)?;
|
||||
cont_lsn = lsn_floor;
|
||||
path.push((result, cont_lsn, layer));
|
||||
} else if self.ancestor_timeline.is_some() {
|
||||
} else if timeline.ancestor_timeline.is_some() {
|
||||
// Nothing on this timeline. Traverse to parent
|
||||
result = ValueReconstructResult::Continue;
|
||||
cont_lsn = Lsn(self.ancestor_lsn.0 + 1);
|
||||
cont_lsn = Lsn(timeline.ancestor_lsn.0 + 1);
|
||||
} else {
|
||||
// Nothing found
|
||||
result = ValueReconstructResult::Missing;
|
||||
|
||||
Reference in New Issue
Block a user