yiguolei commented on code in PR #32039:
URL: https://github.com/apache/doris/pull/32039#discussion_r1519049847


##########
be/src/vec/exec/scan/scanner_scheduler.cpp:
##########
@@ -133,6 +133,7 @@ void 
ScannerScheduler::submit(std::shared_ptr<ScannerContext> ctx,
     // Submit scanners to thread pool
     // TODO(cmy): How to handle this "nice"?
     int nice = 1;
+    QueryThreadContext query_thread_context = 
doris::thread_context()->query_thread_context();

Review Comment:
   这么改可能不对,这么改,是要求scheduler::submit 方法的调用者就是这个query的内存的归属者,这个是保证不了的。过去scanner 
scheduler 是一个单独的线程,他不属于任何query。



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