mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-26 09:30:37 +00:00
Revert assert cechk for advancing prev_record_lsn because in case of creation of branch on some older LSN we can not provide proper xl_prev value
This commit is contained in:
@@ -578,8 +578,7 @@ impl Timeline for ObjectTimeline {
|
||||
assert!(old <= lsn);
|
||||
|
||||
// Use old value of last_record_lsn as prev_record_lsn
|
||||
let old_prev = self.prev_record_lsn.fetch_max(old);
|
||||
assert!(old_prev <= old);
|
||||
self.prev_record_lsn.fetch_max(old);
|
||||
|
||||
// Also advance last_valid_lsn
|
||||
let old = self.last_valid_lsn.advance(lsn);
|
||||
|
||||
Reference in New Issue
Block a user