From e7277885b3e95e41f3e2cab6c52d4e9e3981e27d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arpad=20M=C3=BCller?= Date: Sat, 26 Oct 2024 15:27:57 +0200 Subject: [PATCH] Don't consider archived timelines for synthetic size calculation (#9497) Archived timelines should not count towards synthetic size. Closes #9384. Part of #8088. --- pageserver/src/tenant/size.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pageserver/src/tenant/size.rs b/pageserver/src/tenant/size.rs index 4a4c698b5655..6c3276ea3c13 100644 --- a/pageserver/src/tenant/size.rs +++ b/pageserver/src/tenant/size.rs @@ -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> = HashMap::new();