fix: core when stop dbms_scheduler

This commit is contained in:
obdev
2023-05-08 02:48:49 +00:00
committed by ob-robot
parent 2a16b851f1
commit f933644c6c

View File

@ -305,11 +305,11 @@ int ObDBMSSchedJobMaster::start()
int ObDBMSSchedJobMaster::stop() int ObDBMSSchedJobMaster::stop()
{ {
int ret = OB_SUCCESS; int ret = OB_SUCCESS;
scheduler_task_.stop();
stoped_ = true; stoped_ = true;
while (running_) { while (running_) {
sleep(1); sleep(1);
} }
scheduler_task_.stop();
ready_queue_.clear(); ready_queue_.clear();
alive_jobs_.clear(); alive_jobs_.clear();
stoped_ = false; stoped_ = false;