[refactor](scan) change scan reschedule into scan context (#27766)

* [refactor](scan) change scan reschedule into scan context
This commit is contained in:
zhangstar333
2023-12-04 10:25:52 +08:00
committed by GitHub
parent e9827f443f
commit d2a99aa03b
3 changed files with 6 additions and 17 deletions

View File

@ -76,11 +76,15 @@ public:
*block = std::move(_blocks_queues[id].front());
_blocks_queues[id].pop_front();
if (_blocks_queues[id].empty() && _dependency) {
_dependency->block();
if (_blocks_queues[id].empty()) {
this->reschedule_scanner_ctx();
if (_dependency) {
_dependency->block();
}
}
}
_current_used_bytes -= (*block)->allocated_bytes();
return Status::OK();
}