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


##########
be/src/vec/exec/scan/scanner_scheduler.cpp:
##########
@@ -261,10 +261,8 @@ void ScannerScheduler::_schedule_scanners(ScannerContext* 
ctx) {
 
 void ScannerScheduler::_scanner_scan(ScannerScheduler* scheduler, 
ScannerContext* ctx,
                                      VScannerSPtr scanner) {
-    auto tracker_config = [&] {
-        SCOPED_ATTACH_TASK(scanner->runtime_state());
-        Thread::set_self_name("_scanner_scan");
-    };
+    SCOPED_ATTACH_TASK(scanner->runtime_state());
+    auto tracker_config = [&] { Thread::set_self_name("_scanner_scan"); };

Review Comment:
   This lambda expression is useless, remove it,



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

Reply via email to