github-actions[bot] commented on code in PR #18126:
URL: https://github.com/apache/doris/pull/18126#discussion_r1152966327


##########
be/src/vec/exec/scan/pip_scanner_context.h:
##########
@@ -89,10 +95,28 @@ class PipScannerContext : public vectorized::ScannerContext 
{
         }
     }
 
+    bool has_enough_space_in_blocks_queue() const override {
+        return _current_used_bytes.load(std::memory_order_relaxed) < 
(_max_bytes_in_queue / 2);
+    }
+
+    void try_reschedule_scanner_ctx() override {
+        if (has_enough_space_in_blocks_queue()) {
+            std::lock_guard l(_transfer_lock);
+            if (has_enough_space_in_blocks_queue()) {
+                auto submit_st = _scanner_scheduler->submit(this);

Review Comment:
   warning: member access into incomplete type 
'doris::vectorized::ScannerScheduler' [clang-diagnostic-error]
   ```cpp
                   auto submit_st = _scanner_scheduler->submit(this);
                                                      ^
   ```
   **be/src/runtime/exec_env.h:31:** forward declaration of 
'doris::vectorized::ScannerScheduler'
   ```cpp
   class ScannerScheduler;
         ^
   ```
   



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