HappenLee commented on code in PR #61989:
URL: https://github.com/apache/doris/pull/61989#discussion_r3031347165


##########
be/src/exec/pipeline/pipeline_task.cpp:
##########
@@ -1063,11 +1063,19 @@ Status PipelineTask::_state_transition(State new_state) 
{
     }
     _task_profile->add_info_string("TaskState", _to_string(new_state));
     _task_profile->add_info_string("BlockedByDependency", _blocked_dep ? 
_blocked_dep->name() : "");
-    if (!LEGAL_STATE_TRANSITION[(int)new_state].contains(_exec_state)) {
+    const auto& table =
+            _wake_up_early ? WAKE_UP_EARLY_LEGAL_STATE_TRANSITION : 
LEGAL_STATE_TRANSITION;

Review Comment:
   这块有几组啊?能不能后面搞成一个二维数组



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