Revert accidental commit: "[refer #506] Enforce that xl_prev<curr_lsn for created branch"

This reverts commit aae39ecf57.
This commit is contained in:
Stas Kelvich
2021-09-01 16:30:09 +03:00
parent aae39ecf57
commit 91d605f781

View File

@@ -147,7 +147,7 @@ impl Repository for LayeredRepository {
// into the ancestor.
let metadata = TimelineMetadata {
disk_consistent_lsn: start_lsn,
prev_record_lsn: Some(start_lsn - 8), // we just need to enforce that prev<curr
prev_record_lsn: Some(src_timeline.get_prev_record_lsn()), // FIXME not atomic with start_lsn
ancestor_timeline: Some(src),
ancestor_lsn: start_lsn,
};