WIP: performance test that uses the getpage benchmark

This commit is contained in:
Christian Schwarz
2023-11-09 15:58:16 +00:00
committed by Christian Schwarz
parent c29df80634
commit 8d4fc911c1
10 changed files with 207 additions and 13 deletions

View File

@@ -830,11 +830,12 @@ async fn tenant_list_handler(
ApiError::ResourceUnavailable("Tenant map is initializing or shutting down".into())
})?
.iter()
.map(|(id, state)| TenantInfo {
.map(|(id, state, gen)| TenantInfo {
id: *id,
state: state.clone(),
current_physical_size: None,
attachment_status: state.attachment_status(),
generation: (*gen).into(),
})
.collect::<Vec<TenantInfo>>();
@@ -864,6 +865,7 @@ async fn tenant_status(
state: state.clone(),
current_physical_size: Some(current_physical_size),
attachment_status: state.attachment_status(),
generation: tenant.generation().into(),
},
timelines: tenant.list_timeline_ids(),
})