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: [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