Skip to content

Commit

Permalink
fix: changed function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilit0x committed Oct 9, 2023
1 parent 7ddb956 commit 08de196
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/cmd/src/standalone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use catalog::kvbackend::KvBackendCatalogManager;
use catalog::CatalogManagerRef;
use clap::Parser;
use common_base::Plugins;
use common_config::{kv_store_dir, KvStoreConfig, WalConfig};
use common_config::{metadata_store_dir, KvStoreConfig, WalConfig};
use common_meta::cache_invalidator::DummyKvCacheInvalidator;
use common_meta::kv_backend::KvBackendRef;
use common_procedure::ProcedureManagerRef;
Expand Down Expand Up @@ -310,9 +310,9 @@ impl StartCommand {
fe_opts, dn_opts
);

let kv_dir = kv_store_dir(&opts.data_home);
let metadata_dir = metadata_store_dir(&opts.data_home);
let (kv_store, procedure_manager) =
FeInstance::try_build_standalone_components(kv_dir, opts.kv_store, opts.procedure)
FeInstance::try_build_standalone_components(metadata_dir, opts.kv_store, opts.procedure)
.await
.context(StartFrontendSnafu)?;

Expand Down
2 changes: 1 addition & 1 deletion src/common/config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl Default for WalConfig {
}
}

pub fn kv_store_dir(store_dir: &str) -> String {
pub fn metadata_store_dir(store_dir: &str) -> String {
format!("{store_dir}/metadata")
}

Expand Down

0 comments on commit 08de196

Please sign in to comment.