feat: stop region server (#2356)

* feat: stop region server

* fix: close region first
This commit is contained in:
JeremyHi
2023-09-12 17:29:32 +08:00
committed by Ruihang Xia
parent 4af126eb1b
commit 80c5d52015
5 changed files with 61 additions and 12 deletions

View File

@@ -48,6 +48,9 @@ pub trait RegionEngine: Send + Sync {
/// Retrieve region's metadata.
async fn get_metadata(&self, region_id: RegionId) -> Result<RegionMetadataRef, BoxedError>;
/// Stop the engine
async fn stop(&self) -> Result<(), BoxedError>;
}
pub type RegionEngineRef = Arc<dyn RegionEngine>;