change the default mode of index to local

This commit is contained in:
hnwyllmm
2022-03-09 20:34:40 +08:00
committed by LINxiansheng
parent 2e21515a30
commit 7fddf2bde5
4 changed files with 20 additions and 11 deletions

View File

@ -1727,7 +1727,7 @@ int ObCreateTableResolver::generate_index_arg()
if (is_oracle_temp_table_) {
index_scope_ = LOCAL_INDEX;
}
global_ = (index_scope_ != LOCAL_INDEX);
global_ = (GLOBAL_INDEX == index_scope_);
ObCreateTableStmt* create_table_stmt = static_cast<ObCreateTableStmt*>(stmt_);
ObTableSchema& table_schema = create_table_stmt->get_create_table_arg().schema_;
if (OB_SUCC(ret)) {