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

@ -1408,7 +1408,7 @@ int ObAlterTableResolver::generate_index_arg(obrpc::ObCreateIndexArg& index_arg,
index_arg.index_option_.parser_name_ = common::ObString::make_string(common::OB_DEFAULT_FULLTEXT_PARSER_NAME);
}
} else {
global_ = (index_scope_ != LOCAL_INDEX);
global_ = (GLOBAL_INDEX == index_scope_);
if (is_unique_key) {
if (global_) {
type = INDEX_TYPE_UNIQUE_GLOBAL;