yiguolei commented on code in PR #11743: URL: https://github.com/apache/doris/pull/11743#discussion_r946409547
########## be/src/olap/olap_server.cpp: ########## @@ -523,11 +523,17 @@ std::vector<TabletSharedPtr> StorageEngine::_generate_compaction_tasks( ? copied_cumu_map[data_dir] : copied_base_map[data_dir], &disk_max_score, _cumulative_compaction_policy); - if (tablet != nullptr) { + if (tablet != nullptr && + !tablet->tablet_meta()->mutable_tablet_schema()->disable_auto_compaction()) { Review Comment: inline const TabletSchema& TabletMeta::tablet_schema() const { return *_schema; } inline TabletSchema* TabletMeta::mutable_tablet_schema() { return _schema.get(); } why use mutable_tablet_schema() not tablet_schema()? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org