This commit is contained in:
Christian Schwarz
2025-01-21 20:21:35 +01:00
parent b2dbc47b31
commit d6cdf1b13f

View File

@@ -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,