From 0ac4cf67a61534dcfbaeaea1b35e5dbac50f2bb8 Mon Sep 17 00:00:00 2001 From: Shany Pozin Date: Tue, 7 Nov 2023 13:38:02 +0200 Subject: [PATCH] Use self.tenants instead of TENANTS (#5811) --- pageserver/src/tenant/mgr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pageserver/src/tenant/mgr.rs b/pageserver/src/tenant/mgr.rs index 818872c093..27f9d50c54 100644 --- a/pageserver/src/tenant/mgr.rs +++ b/pageserver/src/tenant/mgr.rs @@ -777,7 +777,7 @@ impl TenantManager { // then we do not need to set the slot to InProgress, we can just call into the // existng tenant. { - let locked = TENANTS.read().unwrap(); + let locked = self.tenants.read().unwrap(); let peek_slot = tenant_map_peek_slot(&locked, &tenant_id, TenantSlotPeekMode::Write)?; match (&new_location_config.mode, peek_slot) { (LocationMode::Attached(attach_conf), Some(TenantSlot::Attached(tenant))) => {