fix memory leak of unique index checking dag

This commit is contained in:
Charles0429
2022-12-08 06:35:57 +00:00
committed by ob-robot
parent 0a48427e29
commit e509751ccf

View File

@ -576,6 +576,7 @@ int ObService::calc_column_checksum_request(const obrpc::ObCalcColumnChecksumReq
STORAGE_LOG(WARN, "fail to add dag to queue", KR(tmp_ret)); STORAGE_LOG(WARN, "fail to add dag to queue", KR(tmp_ret));
} }
} }
saved_ret = OB_SUCCESS != saved_ret ? saved_ret : tmp_ret;
if (OB_SUCCESS != saved_ret && NULL != dag) { if (OB_SUCCESS != saved_ret && NULL != dag) {
dag_scheduler->free_dag(*dag); dag_scheduler->free_dag(*dag);
dag = NULL; dag = NULL;