HappenLee commented on code in PR #48118: URL: https://github.com/apache/doris/pull/48118#discussion_r1963161429
########## be/src/pipeline/task_scheduler.cpp: ########## @@ -111,28 +114,28 @@ void TaskScheduler::_do_work(int index) { } task->log_detail_if_need(); task->set_running(true); + bool fragment_is_finished = false; + Defer task_running_defer {[&, fragment_is_finished = &fragment_is_finished]() { Review Comment: why here use &? still need a pointer of `fragment_is_finished` -- 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