8000 Move async task cleanup before transaction destruction by jbajic · Pull Request #21734 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Move async task cleanup before transaction destruction #21734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 3, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove maintainer ifdef
  • Loading branch information
jbajic committed Jun 2, 2025
commit 2995bbb63ddd0ec2c295dbf0c8de64bcf893a6b2
2 changes: 0 additions & 2 deletions arangod/Aql/ExecutionBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,4 @@ auto ExecutionBlock::printBlockInfo() const -> std::string const {

auto ExecutionBlock::stopAsyncTasks() -> void {}

#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
auto ExecutionBlock::isPrefetchTaskActive() noexcept -> bool { return false; }
#endif
2 changes: 0 additions & 2 deletions arangod/Aql/ExecutionBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ class ExecutionBlock {

virtual auto stopAsyncTasks() -> void;

#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
virtual auto isPrefetchTaskActive() noexcept -> bool;
#endif

protected:
// Trace the start of a execute call
Expand Down
2 changes: 0 additions & 2 deletions arangod/Aql/ExecutionBlockImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,7 @@ class ExecutionBlockImpl final : public ExecutionBlock {

void stopAsyncTasks() override;

#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
bool isPrefetchTaskActive() noexcept override;
#endif

private:
struct ExecutionContext {
Expand Down
2 changes: 0 additions & 2 deletions arangod/Aql/ExecutionBlockImpl.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,11 @@ void ExecutionBlockImpl<Executor>::stopAsyncTasks() {
}
}

#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
template<class Executor>
bool ExecutionBlockImpl<Executor>::isPrefetchTaskActive() noexcept {
return _prefetchTask != nullptr &&
(!_prefetchTask->isConsumed() || !_prefetchTask->isFinished());
}
#endif

template<class Executor>
std::unique_ptr<OutputAqlItemRow> ExecutionBlockImpl<Executor>::createOutputRow(
Expand Down
0