From 422261023324c35bd74914aaeb85ccd8afb19ca2 Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Tue, 23 Jul 2024 14:26:10 +0000 Subject: [PATCH] cleanup index part dependent --- pageserver/src/tenant/timeline/detach_ancestor.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/pageserver/src/tenant/timeline/detach_ancestor.rs b/pageserver/src/tenant/timeline/detach_ancestor.rs index 822c8c7bb5..c89d3d025b 100644 --- a/pageserver/src/tenant/timeline/detach_ancestor.rs +++ b/pageserver/src/tenant/timeline/detach_ancestor.rs @@ -236,23 +236,16 @@ impl Attempt { } #[derive(Default)] -pub(crate) struct SharedStateBuilder { - inprogress: std::collections::HashSet, -} +pub(crate) struct SharedStateBuilder {} impl SharedStateBuilder { /// While loading, visit a timelines persistent [`crate::tenant::IndexPart`] and record if it is being /// detached. pub(crate) fn record_loading_timeline( &mut self, - timeline_id: &TimelineId, - index_part: &crate::tenant::IndexPart, + _timeline_id: &TimelineId, + _index_part: &crate::tenant::IndexPart, ) { - if index_part.ongoing_detach_ancestor.is_some() { - // if the loading a timeline fails, tenant loading must fail as it does right now, or - // something more elaborate needs to be done with this tracking - self.inprogress.insert(*timeline_id); - } } /// Merge the loaded not yet deleting in-progress to the existing datastructure.