[CP] Fix px worker check status always return OB_SUCCESS
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user