Fix sort error invalid idx
This commit is contained in:
@ -1421,14 +1421,11 @@ int ObSortOpImpl::prepare_bucket_array(ArrayType *&buckets, uint64_t bucket_num)
|
|||||||
SQL_ENG_LOG(WARN, "failed to init bucket", K(ret), K(bucket_num));
|
SQL_ENG_LOG(WARN, "failed to init bucket", K(ret), K(bucket_num));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int64_t max_bucket_cnt = buckets->get_capacity();
|
|
||||||
if (max_bucket_cnt < bucket_num) {
|
|
||||||
buckets->reuse();
|
buckets->reuse();
|
||||||
if (OB_FAIL(buckets->init(bucket_num))) {
|
if (OB_FAIL(buckets->init(bucket_num))) {
|
||||||
LOG_WARN("failed to init bucket array", K(ret), K(bucket_num));
|
LOG_WARN("failed to init bucket array", K(ret), K(bucket_num));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -381,14 +381,11 @@ protected:
|
|||||||
SQL_ENG_LOG(WARN, "failed to init bucket", K(ret), K(bucket_num));
|
SQL_ENG_LOG(WARN, "failed to init bucket", K(ret), K(bucket_num));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int64_t max_bucket_cnt = buckets->get_capacity();
|
|
||||||
if (max_bucket_cnt < bucket_num) {
|
|
||||||
buckets->reuse();
|
buckets->reuse();
|
||||||
if (OB_FAIL(buckets->init(bucket_num))) {
|
if (OB_FAIL(buckets->init(bucket_num))) {
|
||||||
LOG_WARN("failed to init bucket array", K(ret), K(bucket_num));
|
LOG_WARN("failed to init bucket array", K(ret), K(bucket_num));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user