提交 4a0238e2 编写于 作者: W wq 提交者: MizuhaHimuraki

fix unexpected logs of ddl_task_executor

上级 5f77d987
...@@ -173,17 +173,24 @@ ObDDLTaskExecutor::~ObDDLTaskExecutor() ...@@ -173,17 +173,24 @@ ObDDLTaskExecutor::~ObDDLTaskExecutor()
void ObDDLTaskExecutor::stop() void ObDDLTaskExecutor::stop()
{ {
TG_STOP(tg_id_); if (tg_id_ >= 0) {
TG_STOP(tg_id_);
}
} }
void ObDDLTaskExecutor::wait() void ObDDLTaskExecutor::wait()
{ {
TG_WAIT(tg_id_); if (tg_id_ >= 0) {
TG_WAIT(tg_id_);
}
} }
void ObDDLTaskExecutor::destroy() void ObDDLTaskExecutor::destroy()
{ {
TG_DESTROY(tg_id_); if (tg_id_ >= 0) {
TG_DESTROY(tg_id_);
tg_id_ = -1;
}
task_queue_.destroy(); task_queue_.destroy();
is_inited_ = false; is_inited_ = false;
cond_.destroy(); cond_.destroy();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册