luwei16 commented on code in PR #27648: URL: https://github.com/apache/doris/pull/27648#discussion_r1416603352
########## be/src/olap/storage_engine.cpp: ########## @@ -1422,4 +1424,23 @@ Status StorageEngine::_persist_broken_paths() { return Status::OK(); } +bool StorageEngine::_increase_low_priority_task_nums(DataDir* dir) { + if (config::enable_compaction_priority_scheduling) { + std::lock_guard l(_low_priority_task_nums_mutex); + if (_low_priority_task_nums[dir] < config::low_priority_compaction_task_num_per_disk) { + _low_priority_task_nums[dir]++; + return true; + } + } + return false; Review Comment: if (!config::enable_compaction_priority_scheduling) { return true; } if (_low_priority_task_nums[dir] < config::low_priority_compaction_task_num_per_disk) { return true; } else { return false; } -- 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