[CP] fix physical plan worker map memory leak

This commit is contained in:
sdc
2024-08-19 09:24:43 +00:00
committed by ob-robot
parent 4fdf9e4944
commit f4c874d121

View File

@ -1191,7 +1191,7 @@ int ObPhysicalPlan::set_minimal_worker_map(const common::hash::ObHashMap<ObAddr,
int ObPhysicalPlan::assign_worker_map(ObPlanStat::AddrMap &worker_map, const common::hash::ObHashMap<ObAddr, int64_t> &c)
{
int ret = OB_SUCCESS;
ObMemAttr attr(MTL_ID(), "WorkerMap");
ObMemAttr attr(tenant_id_, "WorkerMap");
if (worker_map.created()) {
worker_map.clear();
} else if (OB_FAIL(worker_map.create(common::hash::cal_next_prime(100), attr, attr))){