github-actions[bot] commented on code in PR #26879:
URL: https://github.com/apache/doris/pull/26879#discussion_r1397466960


##########
be/src/pipeline/pipeline_task.h:
##########
@@ -251,6 +259,25 @@ class PipelineTask {
 
     void set_parent_profile(RuntimeProfile* profile) { _parent_profile = 
profile; }
 
+    virtual bool is_pipelineX() const { return false; }
+
+    void set_blocked(bool blocked) {
+        std::unique_lock<std::mutex> lc(_blocked_lock);
+        if (blocked) {
+            DCHECK(!_blocked) << debug_string();
+        } else {
+            _previous_wake_stack_msg = _wake_stack_msg;
+            _wake_stack_msg = get_stack_trace();
+            DCHECK(_blocked) << debug_string();
+        }
+        _blocked = blocked;
+    }
+
+    void wake_up_by_queue() { _wake_up_by = nullptr; }

Review Comment:
   warning: method 'is_blocked' can be made const 
[readability-make-member-function-const]
   
   ```suggestion
       bool is_blocked() const {
   ```
   



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