Consider task count for ddl delay scheduling

This commit is contained in:
Hongqin-Li
2022-12-28 13:38:07 +00:00
committed by ob-robot
parent 02fedb0783
commit 6e762be4fb
4 changed files with 8 additions and 5 deletions

View File

@ -337,7 +337,7 @@ void ObDDLScheduler::run1()
} else {
ObCurTraceId::set(task->get_trace_id());
int task_ret = task->process();
task->calc_next_schedule_ts(task_ret);
task->calc_next_schedule_ts(task_ret, task_queue_.get_task_cnt());
if (task->need_retry() && !has_set_stop()) {
if (OB_FAIL(task_queue_.add_task_to_last(task))) {
STORAGE_LOG(ERROR, "fail to add task to last, which should not happen", K(ret), K(*task));