fix: core when stop dbms_scheduler
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user