wangbo commented on code in PR #19924: URL: https://github.com/apache/doris/pull/19924#discussion_r1218047390
########## be/src/pipeline/task_scheduler.h: ########## @@ -91,8 +91,7 @@ class TaskScheduler { void shutdown(); - void update_tg_cpu_share(const taskgroup::TaskGroupInfo& task_group_info, - taskgroup::TaskGroupPtr task_group); + TaskQueue* task_queue() const { return _task_queue.get(); } Review Comment: _task_queue is shared by task_scheduler and TaskGroup, so it's better use shared_ptr here. -- 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