提交 1f14c6e8 编写于 作者: L leftgeek 提交者: ob-robot

fix the stack overflow bug of disabling writing mlog

上级 3f4f0ba9
...@@ -4651,7 +4651,7 @@ int ObDMLStmt::disable_writing_materialized_view() ...@@ -4651,7 +4651,7 @@ int ObDMLStmt::disable_writing_materialized_view()
|| schema::MATERIALIZED_VIEW_LOG == table_item->table_type_) { || schema::MATERIALIZED_VIEW_LOG == table_item->table_type_) {
disable_write_table = true; disable_write_table = true;
} else if (table_item->is_view_table_ && NULL != table_item->ref_query_) { } else if (table_item->is_view_table_ && NULL != table_item->ref_query_) {
OZ( table_item->ref_query_->disable_writing_materialized_view() ); OZ( SMART_CALL(table_item->ref_query_->disable_writing_materialized_view()) );
} }
} }
} }
...@@ -4665,7 +4665,7 @@ int ObDMLStmt::disable_writing_materialized_view() ...@@ -4665,7 +4665,7 @@ int ObDMLStmt::disable_writing_materialized_view()
LOG_WARN("failed to get stmt's child_stmts", K(ret)); LOG_WARN("failed to get stmt's child_stmts", K(ret));
} else { } else {
for (int64_t i = 0; OB_SUCC(ret) && i < child_stmts.count(); ++i) { for (int64_t i = 0; OB_SUCC(ret) && i < child_stmts.count(); ++i) {
OZ( child_stmts.at(i)->disable_writing_materialized_view() ); OZ( SMART_CALL(child_stmts.at(i)->disable_writing_materialized_view()) );
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册