[CP] Fix px worker check status always return OB_SUCCESS

This commit is contained in:
qianchanger
2023-01-12 09:38:12 +00:00
committed by ob-robot
parent 8ffeb21dc9
commit fd39c584f3
18 changed files with 270 additions and 43 deletions

View File

@ -47,6 +47,7 @@
#include "rpc/obrpc/ob_rpc_packet.h"
#include "lib/container/ob_array.h"
#include "share/rc/ob_tenant_module_init_ctx.h"
#include "sql/engine/px/ob_px_worker.h"
using namespace oceanbase::lib;
using namespace oceanbase::common;
@ -222,6 +223,14 @@ void ObPxPool::set_px_thread_name()
lib::set_thread_name_inner(buf);
}
void ObPxPool::run(int64_t idx)
{
set_thread_idx(idx);
// Create worker for current thread.
ObPxWorker worker;
run1();
}
void ObPxPool::run1()
{
int ret = OB_SUCCESS;