add thread name reset in ObThWorker::reset()

This commit is contained in:
ly0
2021-09-14 19:36:49 +08:00
committed by wangzelin.wzl
parent 11d367b6f3
commit f9d5fb8f04

View File

@ -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)