mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-31 20:30:37 +00:00
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:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user