mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-26 17:40:37 +00:00
fix replay of nextMulti and nextMultiOffset fields
This commit is contained in:
@@ -1068,10 +1068,12 @@ pub fn decode_wal_record(checkpoint: &mut CheckPoint, record: Bytes) -> DecodedW
|
||||
blocks.push(blk);
|
||||
}
|
||||
if xlrec.mid > checkpoint.nextMulti {
|
||||
checkpoint.nextMulti = xlrec.mid;
|
||||
// See MultiXactAdvanceNextMXact in postgres code
|
||||
checkpoint.nextMulti = xlrec.mid + 1;
|
||||
}
|
||||
if xlrec.moff > checkpoint.nextMultiOffset {
|
||||
checkpoint.nextMultiOffset = xlrec.moff;
|
||||
// See MultiXactAdvanceNextMXact in postgres code
|
||||
checkpoint.nextMultiOffset = xlrec.moff + xlrec.nmembers;
|
||||
}
|
||||
let max_xid = xlrec
|
||||
.members
|
||||
|
||||
Reference in New Issue
Block a user