diff --git a/src/metric-engine/src/engine/alter.rs b/src/metric-engine/src/engine/alter.rs index aa8e37d8a65c..78dd66d166c6 100644 --- a/src/metric-engine/src/engine/alter.rs +++ b/src/metric-engine/src/engine/alter.rs @@ -29,14 +29,9 @@ impl MetricEngineInner { region_id: RegionId, request: RegionAlterRequest, ) -> Result { - let is_altering_logical_region = self - .state - .read() - .await - .physical_regions() - .contains_key(®ion_id); + let is_altering_physical_region = self.is_physical_region(region_id).await; - let result = if is_altering_logical_region { + let result = if is_altering_physical_region { self.alter_physical_region(region_id, request).await } else { self.alter_logical_region(region_id, request).await