Revert "activate_timelines counter is now == not_broken_timelines.len()"

not_broken_timelines is an iterator, doesn't have `len()`.

This reverts commit 4001f441c0.
This commit is contained in:
Christian Schwarz
2023-05-24 17:19:22 +02:00
parent 4001f441c0
commit 2c424c8f4e

View File

@@ -1652,8 +1652,11 @@ 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();
@@ -1664,7 +1667,7 @@ impl Tenant {
info!(
since_creation_millis = elapsed.as_millis(),
tenant_id = %self.tenant_id,
activated_timelines = not_broken_timelines.len(),
activated_timelines,
total_timelines,
post_state = <&'static str>::from(&*current_state),
"activation attempt finished"