check if backup failed in get items loop

This commit is contained in:
oceanoverflow
2023-03-28 12:44:46 +00:00
committed by ob-robot
parent 838ac9a4e2
commit d4927e05d6
2 changed files with 10 additions and 2 deletions

View File

@ -2119,7 +2119,9 @@ int ObPrefetchBackupInfoTask::inner_process_()
if (OB_SUCC(ret)) {
ObArray<ObBackupProviderItem> items;
int64_t file_id = 0;
if (OB_FAIL(task_mgr_->deliver(items, file_id))) {
if (OB_SUCCESS != ls_backup_ctx_->get_result_code()) {
LOG_INFO("backup task already failed", "result_code", ls_backup_ctx_->get_result_code());
} else if (OB_FAIL(task_mgr_->deliver(items, file_id))) {
if (OB_EAGAIN == ret) {
ret = OB_SUCCESS;
if (!is_run_out) {