From b69523d736eccb2ca11d9ebdd69c4ed64a9db27f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Gra=CC=88tzer?= Date: Thu, 23 Mar 2017 16:14:06 +0100 Subject: [PATCH] Pregel: Fixed memory leak warning --- arangod/Pregel/Algos/ShortestPath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arangod/Pregel/Algos/ShortestPath.cpp b/arangod/Pregel/Algos/ShortestPath.cpp index 37cff26b45..f70059693d 100644 --- a/arangod/Pregel/Algos/ShortestPath.cpp +++ b/arangod/Pregel/Algos/ShortestPath.cpp @@ -111,7 +111,7 @@ ShortestPathAlgorithm::ShortestPathAlgorithm(VPackSlice userParams) } std::set ShortestPathAlgorithm::initialActiveSet() { - return std::set{_format->_sourceDocId}; + return std::set{_source}; } GraphFormat* ShortestPathAlgorithm::inputFormat() const { @@ -120,7 +120,7 @@ GraphFormat* ShortestPathAlgorithm::inputFormat() const { VertexComputation* ShortestPathAlgorithm::createComputation(WorkerConfig const* _config) const { - PregelID target = _config->documentIdToPregel(_format->_targetDocId); + PregelID target = _config->documentIdToPregel(_target); return new SPComputation(target); }