xy720 commented on PR #24840:
URL: https://github.com/apache/doris/pull/24840#issuecomment-1732601702

   > Status ScannerScheduler::submit(ScannerContext* ctx) { if (ctx->done()) { 
return Status::EndOfFile("ScannerContext is done"); } if (ctx->queue_idx == -1) 
{ ctx->queue_idx = (_queue_idx++ % QUEUE_NUM); } if 
(!_pending_queues[ctx->queue_idx]->blocking_put(ctx)) { return 
Status::InternalError("failed to submit scanner context to scheduler"); } 
return Status::OK(); }
   > 
   > we should change code here too:
   > 
   > Status ScannerScheduler::submit(ScannerContext* ctx) { if (ctx->done()) { 
return Status::EndOfFile("ScannerContext is done"); } ctx->queue_idx = 
(_queue_idx++ % QUEUE_NUM);
   > 
   > ```
   > if (!_pending_queues[ctx->queue_idx]->blocking_put(ctx)) {
   >     return Status::InternalError("failed to submit scanner context to 
scheduler");
   > }
   > return Status::OK();
   > ```
   > 
   > }
   
   done.


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

Reply via email to