fix se array of tablet range allocate too much memory and send piece msg core

This commit is contained in:
sdc
2023-07-24 07:18:34 +00:00
committed by ob-robot
parent 599e8f8035
commit 283a9c0b9a
10 changed files with 80 additions and 52 deletions

View File

@ -859,7 +859,7 @@ int ObSlaveMapPkeyRangeIdxCalc::build_partition_range_channel_map(
{
int ret = OB_SUCCESS;
part_range_channel_map.destroy();
const ObIArray<ObPxTabletRange> &part_ranges = exec_ctx_.get_partition_ranges();
const Ob2DArray<ObPxTabletRange> &part_ranges = exec_ctx_.get_partition_ranges();
if (OB_FAIL(part_range_channel_map.create(DEFAULT_PARTITION_COUNT, common::ObModIds::OB_SQL_PX))) {
LOG_WARN("create part range map failed", K(ret));
} else {
@ -951,7 +951,7 @@ bool ObSlaveMapPkeyRangeIdxCalc::Compare::operator()(
int cmp = 0;
const int64_t cnt = sort_cmp_funs_->count();
for (int64_t i = 0; OB_SUCC(ret) && 0 == cmp && i < cnt; i++) {
if (OB_FAIL(sort_cmp_funs_->at(i).cmp_func_(l[i], r[i], cmp))) {
if (OB_FAIL(sort_cmp_funs_->at(i).cmp_func_(l.at(i), r.at(i), cmp))) {
LOG_WARN("do cmp failed", K(ret), K(i), K(l), K(r));
} else if (cmp < 0) {
less = sort_collations_->at(i).is_ascending_;
@ -1266,7 +1266,7 @@ bool ObRangeSliceIdCalc::Compare::operator()(
int cmp = 0;
const int64_t cnt = sort_cmp_funs_->count();
for (int64_t i = 0; OB_SUCC(ret) && 0 == cmp && i < cnt; i++) {
if (OB_FAIL(sort_cmp_funs_->at(i).cmp_func_(l[i], r[i], cmp))) {
if (OB_FAIL(sort_cmp_funs_->at(i).cmp_func_(l.at(i), r.at(i), cmp))) {
LOG_WARN("do cmp failed", K(ret), K(i), K(l), K(r));
} else if (cmp < 0) {
less = sort_collations_->at(i).is_ascending_;