Optimize cpu consumption for arb server.

This commit is contained in:
obdev
2023-03-16 03:43:56 +00:00
committed by ob-robot
parent e5bfe02e4d
commit 570fde52a0
6 changed files with 13 additions and 8 deletions

View File

@ -207,7 +207,7 @@ int PalfEnvImpl::init(
PALF_LOG(ERROR, "construct log path failed", K(ret), K(pret));
} else if (OB_FAIL(palf_handle_impl_map_.init("LOG_HASH_MAP", tenant_id))) {
PALF_LOG(ERROR, "palf_handle_impl_map_ init failed", K(ret));
} else if (OB_FAIL(log_loop_thread_.init(this))) {
} else if (OB_FAIL(log_loop_thread_.init(true, this))) {
PALF_LOG(ERROR, "log_loop_thread_ init failed", K(ret));
} else if (OB_FAIL(
election_timer_.init_and_start(1, 1_ms, "ElectTimer"))) { // just one worker thread