From 412819ac20ff99fcfa13a0d08ccc413e0fac091a Mon Sep 17 00:00:00 2001 From: John Spray Date: Mon, 11 Sep 2023 17:07:46 +0100 Subject: [PATCH] control_plane: fix attach_hook in attachment_service --- control_plane/src/bin/attachment_service.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/control_plane/src/bin/attachment_service.rs b/control_plane/src/bin/attachment_service.rs index e879646b63..d4bca59c7b 100644 --- a/control_plane/src/bin/attachment_service.rs +++ b/control_plane/src/bin/attachment_service.rs @@ -223,6 +223,7 @@ async fn handle_attach_hook(mut req: Request) -> Result, Ap if attach_req.pageserver_id.is_some() { tenant_state.generation += 1; } + tenant_state.pageserver = attach_req.pageserver_id; let generation = tenant_state.generation; locked.save().await.map_err(ApiError::InternalServerError)?;