Skip to content

Commit

Permalink
Revert to the old code.
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Kalmbach <[email protected]>
  • Loading branch information
joka921 committed Dec 4, 2024
1 parent 018e228 commit 6e35c8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/engine/IndexScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,14 +594,14 @@ Result::Generator IndexScan::createPrefilteredJoinSide(
}
auto& prefetchedValues = innerState->prefetchedValues_;
while (true) {
while (prefetchedValues.empty()) {
if (prefetchedValues.empty()) {
if (innerState->doneFetching_) {
co_return;
}
innerState->fetch();
AD_CORRECTNESS_CHECK(!prefetchedValues.empty() ||
innerState->doneFetching_);
}
AD_CORRECTNESS_CHECK(!prefetchedValues.empty() ||
innerState->doneFetching_);
// Make a defensive copy of the values to avoid modification during
// iteration when yielding.
auto copy = std::move(prefetchedValues);
Expand Down

0 comments on commit 6e35c8e

Please sign in to comment.