gavinchou commented on code in PR #37782: URL: https://github.com/apache/doris/pull/37782#discussion_r1677397795
########## be/src/olap/olap_server.cpp: ########## @@ -1097,7 +1097,35 @@ Status StorageEngine::_submit_compaction_task(TabletSharedPtr tablet, } Status StorageEngine::submit_compaction_task(TabletSharedPtr tablet, CompactionType compaction_type, - bool force) { + bool force, bool eager) { + if (!eager) { + DCHECK(compaction_type == CompactionType::BASE_COMPACTION || + compaction_type == CompactionType::CUMULATIVE_COMPACTION); + std::map<DataDir*, std::unordered_set<TabletSharedPtr>> copied_cumu_map; + std::map<DataDir*, std::unordered_set<TabletSharedPtr>> copied_base_map; + { + std::unique_lock<std::mutex> lock(_tablet_submitted_compaction_mutex); + copied_cumu_map = _tablet_submitted_cumu_compaction; + copied_base_map = _tablet_submitted_base_compaction; + } + auto stores = get_stores(); + bool is_busy = std::none_of( Review Comment: too many indentions -- 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