ddl scheduler: only copy dependent index when index status not final
This commit is contained in:
@ -461,9 +461,10 @@ int ObTableRedefinitionTask::copy_table_indexes()
|
||||
} else if (OB_ISNULL(index_schema)) {
|
||||
ret = OB_ERR_SYS;
|
||||
LOG_WARN("error sys, index schema must not be nullptr", K(ret), K(index_ids.at(i)));
|
||||
} else if (index_schema->can_read_index()) {
|
||||
// index is already built
|
||||
} else if (is_final_index_status(index_schema->get_index_status())) {
|
||||
// index status is final
|
||||
need_rebuild_index = false;
|
||||
LOG_INFO("index status is final", K(ret), K(task_id_), K(index_id), K(need_rebuild_index));
|
||||
} else {
|
||||
create_index_arg.index_type_ = index_schema->get_index_type();
|
||||
ObCreateDDLTaskParam param(tenant_id_,
|
||||
|
||||
Reference in New Issue
Block a user