Fixing memory-leak in table direct insert

This commit is contained in:
obdev
2023-02-08 10:58:11 +08:00
committed by ob-robot
parent e9d6a79f8f
commit d51d7d7dab
3 changed files with 42 additions and 19 deletions

View File

@ -120,8 +120,8 @@ int ObTableDirectInsertService::close_task(const uint64_t table_id,
LOG_WARN("fail to finish direct load trans", KR(ret), K(trans_id));
}
} else {
if (OB_FAIL(store.px_clean_up(trans_id))) {
LOG_WARN("failed to do px clean up", KR(ret));
if (OB_FAIL(store.px_abandon_trans(trans_id))) {
LOG_WARN("fail to abandon direct load trans", KR(ret));
}
}
}