fix core when invoke ObDistPlans::match

This commit is contained in:
rq0 2021-08-12 16:39:34 +08:00 committed by wangzelin.wzl
parent 97b4595450
commit ce819f8b0f

View File

@ -486,8 +486,8 @@ int ObDistPlans::calc_table_locations(const ObIArray<LocationConstraint>& loc_co
} else if (OB_ISNULL(tmp_tbl_loc_ptr)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("got an unexpected null tbl_loc_ptr", K(ret), K(tmp_tbl_loc_ptr));
} else {
out_tbl_locations.push_back(*tmp_tbl_loc_ptr);
} else if (OB_FAIL(out_tbl_locations.push_back(*tmp_tbl_loc_ptr))) {
LOG_WARN("failed to add table location", K(ret));
}
}
if (OB_SUCC(ret)) {