Fix the bug that the error-code is overwritten in closing direct insert tasks

This commit is contained in:
leftgeek
2023-05-24 07:16:55 +00:00
committed by ob-robot
parent 31c06fbd1d
commit 78115d17d8

View File

@ -129,8 +129,9 @@ int ObTableDirectInsertService::close_task(const uint64_t table_id,
}
}
if (OB_FAIL(ret)) {
if (OB_FAIL(ObTableLoadStore::px_abandon_trans(table_ctx, trans_id))) {
LOG_WARN("fail to abandon direct load trans", KR(ret), K(trans_id));
int tmp_ret = OB_SUCCESS;
if (OB_TMP_FAIL(ObTableLoadStore::px_abandon_trans(table_ctx, trans_id))) {
LOG_WARN("fail to abandon direct load trans", KR(tmp_ret), K(trans_id));
}
}
}