fix ddl child tasks recover failed.
This commit is contained in:
@ -487,19 +487,18 @@ int ObTableRedefinitionTask::copy_table_indexes()
|
||||
}
|
||||
}
|
||||
if (OB_SUCC(ret) && need_rebuild_index) {
|
||||
TCWLockGuard guard(lock_);
|
||||
const uint64_t task_key = index_ids.at(i);
|
||||
DependTaskStatus status;
|
||||
status.task_id_ = task_record.task_id_;
|
||||
TCWLockGuard guard(lock_);
|
||||
if (OB_FAIL(dependent_task_result_map_.set_refactored(task_key, status))) {
|
||||
if (OB_HASH_EXIST == ret) {
|
||||
ret = OB_SUCCESS;
|
||||
} else {
|
||||
if (OB_FAIL(dependent_task_result_map_.get_refactored(task_key, status))) {
|
||||
if (OB_HASH_NOT_EXIST != ret) {
|
||||
LOG_WARN("get from dependent task map failed", K(ret));
|
||||
} else if (OB_FAIL(dependent_task_result_map_.set_refactored(task_key, status))) {
|
||||
LOG_WARN("set dependent task map failed", K(ret), K(task_key));
|
||||
}
|
||||
} else {
|
||||
LOG_INFO("add build index task", K(task_key));
|
||||
}
|
||||
LOG_INFO("add build index task", K(ret), K(task_key), K(status));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user