mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 12:32:54 +00:00
Align prev record CRC on 8-bytes boundary (#407)
This commit is contained in:
committed by
GitHub
parent
c99a211b01
commit
b607f0fd8e
@@ -642,7 +642,7 @@ impl Timeline for ObjectTimeline {
|
||||
assert!(old <= lsn);
|
||||
|
||||
// Use old value of last_record_lsn as prev_record_lsn
|
||||
self.prev_record_lsn.fetch_max(old);
|
||||
self.prev_record_lsn.fetch_max(Lsn((old.0 + 7) & !7));
|
||||
|
||||
// Also advance last_valid_lsn
|
||||
let old = self.last_valid_lsn.advance(lsn);
|
||||
|
||||
Reference in New Issue
Block a user