fix plan cache memleak for add local plan route
This commit is contained in:
@ -900,6 +900,9 @@ int ObSqlPlanSet::add_plan(ObPhysicalPlan& plan, ObPlanCacheCtx& pc_ctx, int64_t
|
||||
} else {
|
||||
array_binding_plan_ = &plan;
|
||||
}
|
||||
} else {
|
||||
if (NULL != local_plan_) {
|
||||
ret = OB_SQL_PC_PLAN_DUPLICATE;
|
||||
} else {
|
||||
local_plan_ = &plan;
|
||||
local_phy_locations_.reset();
|
||||
@ -910,6 +913,7 @@ int ObSqlPlanSet::add_plan(ObPhysicalPlan& plan, ObPlanCacheCtx& pc_ctx, int64_t
|
||||
}
|
||||
LOG_DEBUG("local phy locations", K(local_phy_locations_));
|
||||
}
|
||||
}
|
||||
} break;
|
||||
case OB_PHY_PLAN_REMOTE: {
|
||||
SQL_PC_LOG(DEBUG, "plan set add plan, remote plan", K(ret), K(remote_plan_));
|
||||
|
||||
Reference in New Issue
Block a user