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 ret = OB_SUCCESS;
/*
* ObLookupOp will call ObLocalIndexLookupOp::revert_iter();
* We do not need revert twice!
*/
if (OB_FAIL(ObLocalIndexLookupOp::revert_iter())) {
LOG_WARN("revert local index lookup iter from group fail.", K(ret));
}
group_iter_.reset();
return ret;
}