mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-18 05:50:41 +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:
@@ -200,7 +200,7 @@ pub trait RegionEngine: Send + Sync {
|
||||
async fn get_metadata(&self, region_id: RegionId) -> Result<RegionMetadataRef, BoxedError>;
|
||||
|
||||
/// Retrieves region's disk usage.
|
||||
async fn region_disk_usage(&self, region_id: RegionId) -> Option<i64>;
|
||||
fn region_disk_usage(&self, region_id: RegionId) -> Option<i64>;
|
||||
|
||||
/// Stops the engine
|
||||
async fn stop(&self) -> Result<(), BoxedError>;
|
||||
|
||||
Reference in New Issue
Block a user