jacktengg commented on code in PR #50940:
URL: https://github.com/apache/doris/pull/50940#discussion_r2174119918


##########
be/src/common/signal_handler.h:
##########
@@ -440,6 +440,16 @@ inline void set_signal_task_id(TUniqueId tid) {
     query_id_lo = tid.lo;
 }
 
+// this struct is used to set signal task id in the constructor and reset it 
in the destructor
+// thread pool will reuse pthread, so we need to clean thread local data
+struct SignalTaskIdKeeper {
+    template <typename T>
+    SignalTaskIdKeeper(const T& id) {
+        set_signal_task_id(id);

Review Comment:
   定位coredump用到,master上也会改。



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