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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to