mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 09:52:54 +00:00
debug assertion on correct record order: https://github.com/neondatabase/neon/pull/9353#discussion_r1923801121
This commit is contained in:
@@ -1206,6 +1206,15 @@ impl Timeline {
|
||||
}
|
||||
};
|
||||
|
||||
// The walredo module expects the records to be descending in terms of Lsn.
|
||||
// And we submit the IOs in that order, so, there shuold be no need to sort here.
|
||||
debug_assert!(
|
||||
converted
|
||||
.records
|
||||
.is_sorted_by_key(|(lsn, _)| std::cmp::Reverse(*lsn)),
|
||||
"{converted:?}"
|
||||
);
|
||||
|
||||
(
|
||||
key,
|
||||
walredo_self.reconstruct_value(key, lsn, converted).await,
|
||||
|
||||
Reference in New Issue
Block a user