feat: table route for metric engine (#3053)

* feat: table route for metric engine

* feat: register logical regions

* fix: open logical region (#96)

---------

Co-authored-by: JeremyHi <jiachun_feng@proton.me>
This commit is contained in:
LFC
2024-01-04 14:30:17 +08:00
committed by GitHub
parent b025bed45c
commit ec43b9183d
20 changed files with 228 additions and 92 deletions

View File

@@ -14,6 +14,7 @@
//! Region Engine's definition
use std::any::Any;
use std::fmt::Display;
use std::sync::Arc;
@@ -165,6 +166,8 @@ pub trait RegionEngine: Send + Sync {
///
/// Returns the `None` if the region is not found.
fn role(&self, region_id: RegionId) -> Option<RegionRole>;
fn as_any(&self) -> &dyn Any;
}
pub type RegionEngineRef = Arc<dyn RegionEngine>;