From f9d5fb8f04040127dac22ca52a743ab8c73ca8cf Mon Sep 17 00:00:00 2001 From: ly0 Date: Tue, 14 Sep 2021 19:36:49 +0800 Subject: [PATCH] add thread name reset in ObThWorker::reset() --- src/observer/omt/ob_th_worker.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/observer/omt/ob_th_worker.h b/src/observer/omt/ob_th_worker.h index b219d4b140..6b77c558b0 100644 --- a/src/observer/omt/ob_th_worker.h +++ b/src/observer/omt/ob_th_worker.h @@ -19,6 +19,7 @@ #include "lib/coro/co.h" #include "rpc/ob_request.h" #include "lib/coro/co_user_thread.h" +#include "lib/thread/ob_thread_name.h" namespace oceanbase { @@ -184,6 +185,7 @@ inline void ObThWorker::reset() ws_ = WStatus::STOPPED; active_ = false; unset_tidx(); + lib::set_thread_name("OMT_FREE", ObWorker::get_tidx()); } inline void ObThWorker::set_tenant(ObTenant* tenant) -- GitLab