Use self.tenants instead of TENANTS (#5811)

This commit is contained in:
Shany Pozin
2023-11-07 13:38:02 +02:00
committed by GitHub
parent 4be6bc7251
commit 0ac4cf67a6

View File

@@ -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))) => {