[to #2024120400105981374]bugFix dbms_job deadlock

This commit is contained in:
seuwebber
2024-12-09 05:15:55 +00:00
committed by ob-robot
parent 9ea869ed68
commit e7957aaa7f
2 changed files with 4 additions and 4 deletions

View File

@ -77,10 +77,10 @@ int ObDBMSJobTask::stop()
ret = OB_NOT_INIT;
LOG_WARN("dbms job task not inited", K(ret), K(inited_));
} else {
ObSpinLockGuard guard(lock_);
timer_.cancel(*this);
timer_.stop();
timer_.wait();
ObSpinLockGuard guard(lock_);
wait_vector_.clear();
job_key_ = NULL;
ready_queue_ = NULL;