Align prev record CRC on 8-bytes boundary (#407)

This commit is contained in:
Konstantin Knizhnik
2021-08-11 08:56:37 +03:00
committed by GitHub
parent c99a211b01
commit b607f0fd8e

View File

@@ -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);