You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2021/12/06 03:28:58 UTC

[GitHub] [incubator-doris] yangzhg commented on a change in pull request #7198: [Memory] Use TCMalloc Hook to count the real Process and Query MemTracker

yangzhg commented on a change in pull request #7198:
URL: https://github.com/apache/incubator-doris/pull/7198#discussion_r762680407



##########
File path: be/src/exec/olap_scan_node.cpp
##########
@@ -1503,6 +1505,7 @@ void OlapScanNode::scanner_thread(OlapScanner* scanner) {
         _scan_batch_added_cv.notify_one();
         _scan_thread_exit_cv.notify_one();
         LOG(INFO) << "Scan thread cancelled, cause query done, scan thread started to exit";
+        thread_local_ctx.unattach_query();

Review comment:
       ```suggestion
           thread_local_ctx.detach_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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org