提交 bd84570b 编写于 作者: B bz0 提交者: wangzelin.wzl

fix bug that is not check whether dimensional pointer is null

上级 6eb1cb83
......@@ -445,10 +445,17 @@ int ObPartIdsGeneratorForAdd<T>::gen(common::ObIArray<int64_t>& part_ids)
max_used_part_id = table_.get_part_option().get_part_num() - 1;
}
for (int64_t i = 0; OB_SUCC(ret) && i < inc_part_num; ++i) {
ObPartition* part = part_array[i];
if (PARTITION_LEVEL_TWO == part_level) {
if (!table_.is_sub_part_template()) {
if (OB_ISNULL(part)) {
ObPartition* part = NULL;
if (OB_ISNULL(part_array)) {
ret = common::OB_ERR_UNEXPECTED;
SHARE_LOG(WARN, "Empty partition", KR(ret), K(table_));
} else {
part = part_array[i];
}
if (OB_FAIL(ret)) {
} else if (OB_ISNULL(part)) {
ret = common::OB_ERR_UNEXPECTED;
SHARE_LOG(WARN, "part_array[i] is null", KR(ret), K(i));
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册