refactor: introduce TenantState::Activating to avoid holding timelines lock inside Tenant::activate

This commit is contained in:
Christian Schwarz
2023-05-23 20:03:12 +02:00
parent 8bcb542a3b
commit 3e604eaa39
4 changed files with 87 additions and 43 deletions

View File

@@ -831,7 +831,7 @@ async fn handle_tenant_break(r: Request<Body>) -> Result<Response<Body>, ApiErro
.await
.map_err(|_| ApiError::Conflict(String::from("no active tenant found")))?;
tenant.set_broken("broken from test".to_owned());
tenant.set_broken("broken from test".to_owned()).await;
json_response(StatusCode::OK, ())
}