fix: explicit set Worker::self_ to thread local

This commit is contained in:
obdev
2023-03-24 10:11:22 +00:00
committed by ob-robot
parent a8778f6a45
commit 51224417e1
7 changed files with 12 additions and 12 deletions

View File

@ -33,6 +33,7 @@ int ObTableServiceLibrary::init()
::oceanbase::common::USE_CO_LATCH = false;
// Create worker for current thread.
::oceanbase::lib::Worker worker;
::oceanbase::lib::Worker::set_worker_to_thread_local(&worker);
// setup easy
easy_log_set_format(easy_log_format_adaptor);
easy_log_level = EASY_LOG_INFO;