Fix profile queries with ScanAll

This commit is contained in:
János Benjamin Antal 2022-10-25 14:37:18 +02:00
parent 5939fb2b0c
commit 8ebc704819

View File

@ -370,6 +370,7 @@ class DistributedScanAllAndFilterCursor : public Cursor {
bool Pull(Frame &frame, ExecutionContext &context) override {
SCOPED_PROFILE_OP(op_name_);
auto &shard_manager = *context.shard_request_manager;
while (true) {
if (MustAbort(context)) {
throw HintedAbortError();
}
@ -384,7 +385,7 @@ class DistributedScanAllAndFilterCursor : public Cursor {
if (current_vertex_it == current_batch.end()) {
if (request_state_.state == State::COMPLETED || !MakeRequest(shard_manager)) {
ResetExecutionState();
return Pull(frame, context);
continue;
}
}
@ -392,6 +393,7 @@ class DistributedScanAllAndFilterCursor : public Cursor {
++current_vertex_it;
return true;
}
}
void Shutdown() override { input_cursor_->Shutdown(); }