From 4001f441c06b9aee4c422133e08fbfa622449e51 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Wed, 24 May 2023 17:14:49 +0200 Subject: [PATCH] activate_timelines counter is now == not_broken_timelines.len() --- pageserver/src/tenant.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pageserver/src/tenant.rs b/pageserver/src/tenant.rs index 06de916054..3dee71c3c1 100644 --- a/pageserver/src/tenant.rs +++ b/pageserver/src/tenant.rs @@ -1652,11 +1652,8 @@ impl Tenant { // down when they notice that the tenant is inactive. tasks::start_background_loops(self.tenant_id); - let mut activated_timelines = 0; - for timeline in not_broken_timelines { timeline.activate(broker_client.clone(), ctx); - activated_timelines += 1; } let elapsed = self.loading_started_at.elapsed(); @@ -1667,7 +1664,7 @@ impl Tenant { info!( since_creation_millis = elapsed.as_millis(), tenant_id = %self.tenant_id, - activated_timelines, + activated_timelines = not_broken_timelines.len(), total_timelines, post_state = <&'static str>::from(&*current_state), "activation attempt finished"