diff --git a/src/objit/src/ob_llvm_di_helper.cpp b/src/objit/src/ob_llvm_di_helper.cpp index f040901e90..7fc713c101 100644 --- a/src/objit/src/ob_llvm_di_helper.cpp +++ b/src/objit/src/ob_llvm_di_helper.cpp @@ -407,9 +407,9 @@ int ObLLVMDIHelper::create_subroutine_type(ObIArray &member_types, } int ObLLVMDIHelper::get_current_scope(ObLLVMDIScope &scope) -{ - int ret = OB_SUCCESS; - if (OB_ISNULL(jc_) || (OB_ISNULL(jc_->file_) && OB_ISNULL(jc_->sp_))) { +{ + int ret = OB_SUCCESS; + if (OB_ISNULL(jc_) || (OB_ISNULL(jc_->file_) && OB_ISNULL(jc_->sp_))) { ret = OB_NOT_INIT; LOG_WARN("jc is NULL", K(ret)); } else if (NULL != jc_->sp_) { diff --git a/src/observer/table/ob_table_op_wrapper.cpp b/src/observer/table/ob_table_op_wrapper.cpp index 23dadf971d..1f415ac46b 100644 --- a/src/observer/table/ob_table_op_wrapper.cpp +++ b/src/observer/table/ob_table_op_wrapper.cpp @@ -602,7 +602,7 @@ int ObHTableDeleteExecutor::delete_rows(ObTableQueryResult &result) int ret = OB_SUCCESS; const ObITableEntity *entity = nullptr; executor_->set_skip_scan(true); - while (OB_SUCC(result.get_next_entity(entity))) { + while (OB_SUCC(ret) && OB_SUCC(result.get_next_entity(entity))) { ObTableOperation op; op.set_type(ObTableOperationType::Type::DEL); op.set_entity(entity);