diff --git a/arangod/Aql/ShortestPathBlock.cpp b/arangod/Aql/ShortestPathBlock.cpp index 3630ec8104..d3925724a6 100644 --- a/arangod/Aql/ShortestPathBlock.cpp +++ b/arangod/Aql/ShortestPathBlock.cpp @@ -257,9 +257,7 @@ bool ShortestPathBlock::nextPath(AqlItemBlock const* items) { VPackSlice start = _opts->getStart(); VPackSlice end = _opts->getEnd(); TRI_ASSERT(_finder != nullptr); - // We do not need this data anymore. Result has been processed. - // Save some memory. - _coordinatorCache.clear(); + bool hasPath = _finder->shortestPath(start, end, *_path, [this]() { throwIfKilled(); }); diff --git a/arangod/Aql/ShortestPathBlock.h b/arangod/Aql/ShortestPathBlock.h index 6164a17d77..4f2fcfe963 100644 --- a/arangod/Aql/ShortestPathBlock.h +++ b/arangod/Aql/ShortestPathBlock.h @@ -146,9 +146,6 @@ class ShortestPathBlock : public ExecutionBlock { /// We use it to check if we are done with enumerating. bool _usedConstant; - /// @brief Cache for edges send over the network - std::vector>> _coordinatorCache; - /// @brief Traverser Engines std::unordered_map const* _engines;