Don't consider archived timelines for synthetic size calculation (#9497)

Archived timelines should not count towards synthetic size.

Closes #9384.

Part of #8088.
This commit is contained in:
Arpad Müller
2024-10-26 15:27:57 +02:00
committed by GitHub
parent 80262e724f
commit e7277885b3

View File

@@ -187,6 +187,8 @@ pub(super) async fn gather_inputs(
// but it is unlikely to cause any issues. In the worst case,
// the calculation will error out.
timelines.retain(|t| t.is_active());
// Also filter out archived timelines.
timelines.retain(|t| t.is_archived() != Some(true));
// Build a map of branch points.
let mut branchpoints: HashMap<TimelineId, HashSet<Lsn>> = HashMap::new();