fix the stack overflow bug of disabling writing mlog
This commit is contained in:
@ -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()
|
|||||||
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()) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user