zhiqiang-hhhh commented on code in PR #44690:
URL: https://github.com/apache/doris/pull/44690#discussion_r1928829468
##########
be/src/vec/exec/scan/scanner_context.cpp:
##########
@@ -276,19 +274,16 @@ void
ScannerContext::push_back_scan_task(std::shared_ptr<ScanTask> scan_task) {
}
}
}
- std::lock_guard<std::mutex> l(_transfer_lock);
- if (!scan_task->status_ok()) {
- _process_status = scan_task->get_status();
- }
- if (_last_scale_up_time == 0) {
- _last_scale_up_time = UnixMillis();
- }
- if (_tasks_queue.empty() && _last_fetch_time != 0) {
- // there's no block in queue before current block, so the consumer is
waiting
- _total_wait_block_time += UnixMillis() - _last_fetch_time;
+
+ {
+ std::lock_guard<std::mutex> l(_transfer_lock);
+ if (!scan_task->status_ok()) {
+ _process_status = scan_task->get_status();
+ }
+ _tasks_queue.push_back(scan_task);
+ _num_scheduled_scanners--;
}
- _num_scheduled_scanners--;
- _tasks_queue.emplace_back(scan_task);
+
_dependency->set_ready();
Review Comment:
fixed
--
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]