Fix some cases not check return code
This commit is contained in:
@ -147,7 +147,7 @@ int ObStoreRowIterPool::get_iter(const std::type_info &type, ObStoreRowIterator
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
iter = nullptr;
|
||||
for (int64_t i = 0; i < table_iters_array_.count(); ++i) {
|
||||
for (int64_t i = 0; OB_SUCC(ret) && i < table_iters_array_.count(); ++i) {
|
||||
TableTypedIters *typed_iters = table_iters_array_.at(i);
|
||||
if (OB_NOT_NULL(typed_iters) && typed_iters->is_type(type)) {
|
||||
if (typed_iters->iters_.count() > 0) {
|
||||
|
@ -709,7 +709,7 @@ int ObMicroBlockReader::get_row_count(
|
||||
const common::ObIArray<int32_t> &cols_index = read_info_->get_columns_index();
|
||||
int64_t col_idx = cols_index.at(col);
|
||||
ObStorageDatum datum;
|
||||
for (int64_t i = 0; i < row_cap; ++i) {
|
||||
for (int64_t i = 0; OB_SUCC(ret) && i < row_cap; ++i) {
|
||||
row_idx = row_ids[i];
|
||||
if (OB_UNLIKELY(row_idx < 0 || row_idx >= header_->row_count_)) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
|
Reference in New Issue
Block a user