[CP] fix some ctas exception handle bugs

This commit is contained in:
obdev
2022-07-04 10:14:19 +08:00
committed by wangzelin.wzl
parent a963f52add
commit 491d36e26a
17 changed files with 252 additions and 154 deletions

View File

@ -76,6 +76,12 @@ int PwjTable::init(const ObTableSchema& table_schema, const ObPhyTableLocationIn
}
}
}
if (OB_SUCC(ret)
&& ((share::schema::PARTITION_LEVEL_TWO == part_level_) || (share::schema::PARTITION_LEVEL_ONE == part_level_))
&& 0 == part_number_) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("get unexpected part number", K(ref_table_id_), K(table_schema), K(phy_tbl_info));
}
return ret;
}