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 06:30:17 +00:00
committed by GitHub
co-authored by JeremyHi
parent b025bed45c
commit ec43b9183d
20 changed files with 228 additions and 92 deletions
+5
View File
@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use std::any::Any;
use std::collections::HashMap;
use std::sync::{Arc, RwLock};
@@ -119,6 +120,10 @@ impl RegionEngine for FileRegionEngine {
fn role(&self, region_id: RegionId) -> Option<RegionRole> {
self.inner.state(region_id)
}
fn as_any(&self) -> &dyn Any {
self
}
}
struct EngineInner {