morningman commented on code in PR #26816:
URL: https://github.com/apache/doris/pull/26816#discussion_r1390321011
##########
be/src/vec/exec/scan/scanner_context.cpp:
##########
@@ -217,7 +219,14 @@ Status ScannerContext::get_block_from_queue(RuntimeState*
state, vectorized::Blo
// (if the scheduler continues to schedule, it will cause a lot of busy
running).
// At this point, consumers are required to trigger new scheduling to
ensure that
// data can be continuously fetched.
+ int64_t cur_bytes_in_queue = _cur_bytes_in_queue;
+ int32_t serving_blocks_num = _serving_blocks_num;
+ bool to_be_schedule = should_be_scheduled();
+ int num_running_scanners = _num_running_scanners;
+
+ bool is_scheduled = false;
if (should_be_scheduled() && _num_running_scanners == 0) {
Review Comment:
```suggestion
if (to_be_schedule && _num_running_scanners == 0) {
```
--
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]