mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-17 13:10:38 +00:00
refactor: introduce TenantState::Activating to avoid holding timelines lock inside Tenant::activate
This commit is contained in:
@@ -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, ())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user