chore: expose some codes to let other projects use them (#3115)

This commit is contained in:
LFC
2024-01-08 14:32:01 +08:00
committed by GitHub
parent 58ada1dfef
commit fcacb100a2
2 changed files with 2 additions and 1 deletions

View File

@@ -464,7 +464,7 @@ impl StartCommand {
Ok(ddl_task_executor)
}
async fn create_table_metadata_manager(
pub async fn create_table_metadata_manager(
kv_backend: KvBackendRef,
) -> Result<TableMetadataManagerRef> {
let table_metadata_manager = Arc::new(TableMetadataManager::new(kv_backend));

View File

@@ -33,6 +33,7 @@ use crate::rpc::router::{Region, RegionRoute};
use crate::sequence::SequenceRef;
use crate::wal::{allocate_region_wal_options, WalOptionsAllocatorRef};
#[derive(Clone)]
pub struct TableMetadataAllocator {
table_id_sequence: SequenceRef,
wal_options_allocator: WalOptionsAllocatorRef,