feat: table route cache (#462)

* feat: table route cache

Co-authored-by: luofucong <luofucong@greptime.com>
This commit is contained in:
LFC
2022-11-11 18:54:56 +08:00
committed by GitHub
parent e30879f638
commit f375e18a76
27 changed files with 775 additions and 237 deletions

View File

@@ -118,6 +118,7 @@ pub struct TableGlobalValue {
pub id: TableId,
/// Id of datanode that created the global table info kv. only for debugging.
pub node_id: u64,
// TODO(LFC): Maybe remove it?
/// Allocation of region ids across all datanodes.
pub regions_id_map: HashMap<u64, Vec<u32>>,
/// Node id -> region ids