Consider task count for ddl delay scheduling
This commit is contained in:
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user