do not sync table stats for mview complete refresh

This commit is contained in:
obdev 2024-09-20 06:10:39 +00:00 committed by ob-robot
parent 07647f0f3c
commit 45b11fd0ce

View File

@ -894,6 +894,7 @@ int ObTableRedefinitionTask::take_effect(const ObDDLTaskStatus next_task_status)
}
} else if (ObDDLType::DDL_DIRECT_LOAD != task_type_ &&
ObDDLType::DDL_DIRECT_LOAD_INSERT != task_type_ &&
ObDDLType::DDL_MVIEW_COMPLETE_REFRESH != task_type_ &&
OB_FAIL(sync_stats_info())) {//direct load no need sync stats info, because the stats have been regather
LOG_WARN("fail to sync stats info", K(ret), K(object_id_), K(target_object_id_));
} else if (alter_table_arg_.mview_refresh_info_.is_mview_complete_refresh_ &&