yiguolei commented on code in PR #26904:
URL: https://github.com/apache/doris/pull/26904#discussion_r1391111207
##########
be/src/runtime/thread_context.cpp:
##########
@@ -23,34 +23,27 @@
namespace doris {
class MemTracker;
-DEFINE_STATIC_THREAD_LOCAL(ThreadContext, ThreadContextPtr, _ptr);
-
-ThreadContextPtr::ThreadContextPtr() {
- INIT_STATIC_THREAD_LOCAL(ThreadContext, _ptr);
- init = true;
-}
-
AttachTask::AttachTask(const std::shared_ptr<MemTrackerLimiter>& mem_tracker,
const TUniqueId& task_id, const TUniqueId&
fragment_instance_id) {
- SwitchBthreadLocal::switch_to_bthread_local();
+ ThreadLocalHandle::handle_thread_local();
Review Comment:
rename create_thread_local_if_not_exits()?
--
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]