Fix memory leak introduce by change revert logic of lookup op.

This commit is contained in:
obdev
2023-05-30 04:46:48 +00:00
committed by ob-robot
parent 759f4bbfa2
commit 5af9d6c36d

View File

@ -365,10 +365,9 @@ int ObGroupLookupOp::set_lookup_scan_group(int64_t group_id)
int ObGroupLookupOp::revert_iter() int ObGroupLookupOp::revert_iter()
{ {
int ret = OB_SUCCESS; int ret = OB_SUCCESS;
/* if (OB_FAIL(ObLocalIndexLookupOp::revert_iter())) {
* ObLookupOp will call ObLocalIndexLookupOp::revert_iter(); LOG_WARN("revert local index lookup iter from group fail.", K(ret));
* We do not need revert twice! }
*/
group_iter_.reset(); group_iter_.reset();
return ret; return ret;
} }