Skip to content

Commit 2e41772

Browse files
committed
bugfix: multi-timeline pagemap, another take
1 parent d3ed73b commit 2e41772

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parsexlog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,13 @@ extractPageMap(const char *archivedir, uint32 wal_seg_size,
316316
wal_interval->end_lsn = prev_switchpoint;
317317
}
318318

319-
prev_switchpoint = tmp_tlinfo->switchpoint;
320-
tmp_tlinfo = tmp_tlinfo->parent_link;
321-
322319
parray_append(interval_list, wal_interval);
323320

324321
if (tmp_tlinfo->tli == start_tli)
325322
break;
323+
324+
prev_switchpoint = tmp_tlinfo->switchpoint;
325+
tmp_tlinfo = tmp_tlinfo->parent_link;
326326
}
327327

328328
for (i = parray_num(interval_list) - 1; i >= 0; i--)

0 commit comments

Comments
 (0)