Signed-off-by: wyb <wybb86@gmail.com> Co-authored-by: wyb <wybb86@gmail.com>
This commit is contained in:
parent
7640fb0302
commit
13755f4f16
|
|
@ -107,16 +107,18 @@ void start_be(const std::vector<StorePath>& paths, bool as_cn) {
|
|||
CHECK(global_vars->is_init()) << "global variables not initialized";
|
||||
LOG(INFO) << process_name << " start step " << start_step++ << ": global variables init successfully";
|
||||
|
||||
auto* storage_engine = init_storage_engine(global_env, paths, as_cn);
|
||||
LOG(INFO) << process_name << " start step " << start_step++ << ": storage engine init successfully";
|
||||
|
||||
// cache env should be initialized before init_storage_engine,
|
||||
// because apply task is triggered in init_storage_engine and needs cache env.
|
||||
auto* cache_env = DataCache::GetInstance();
|
||||
EXIT_IF_ERROR(cache_env->init(paths));
|
||||
LOG(INFO) << process_name << " start step " << start_step++ << ": cache env init successfully";
|
||||
|
||||
auto* storage_engine = init_storage_engine(global_env, paths, as_cn);
|
||||
LOG(INFO) << process_name << " start step " << start_step++ << ": storage engine init successfully";
|
||||
|
||||
auto* exec_env = ExecEnv::GetInstance();
|
||||
EXIT_IF_ERROR(exec_env->init(paths, as_cn));
|
||||
LOG(INFO) << process_name << " start step " << start_step++ << ": exec engine init successfully";
|
||||
LOG(INFO) << process_name << " start step " << start_step++ << ": exec env init successfully";
|
||||
|
||||
// Start all background threads of storage engine.
|
||||
// SHOULD be called after exec env is initialized.
|
||||
|
|
|
|||
Loading…
Reference in New Issue