mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-15 01:32:56 +00:00
fix: avoid acquiring lock during reading stats (#4070)
* fix: avoid acquiring lock during reading stats * chore: apply suggestions from CR * chore: apply suggestions from CR
This commit is contained in:
@@ -189,7 +189,7 @@ impl RegionServer {
|
||||
|
||||
pub async fn region_disk_usage(&self, region_id: RegionId) -> Option<i64> {
|
||||
match self.inner.region_map.get(®ion_id) {
|
||||
Some(e) => e.region_disk_usage(region_id).await,
|
||||
Some(e) => e.region_disk_usage(region_id),
|
||||
None => None,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ impl RegionEngine for MockRegionEngine {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
async fn region_disk_usage(&self, _region_id: RegionId) -> Option<i64> {
|
||||
fn region_disk_usage(&self, _region_id: RegionId) -> Option<i64> {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user