Skip to content
Closed
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
Simplify Step code
  • Loading branch information
markuspf committed Nov 28, 2025
commit 12fa0a17fa35ff54ee49e3d38d1eb16ee83f6552
6 changes: 3 additions & 3 deletions arangod/Graph/PathManagement/PathValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ auto PathValidator<ProviderType, PathStore, vertexUniqueness, edgeUniqueness>::
bool success = _store.visitReversePath(
step, [&](typename PathStore::Step const& step) -> bool {
auto const& [unusedV, addedVertex] =
_uniqueVertices.emplace(step.getVertexIdentifier());
_uniqueVertices.emplace(step.getVertex().getID());

// If this add fails, we need to exclude this path
return addedVertex;
Expand All @@ -101,7 +101,7 @@ auto PathValidator<ProviderType, PathStore, vertexUniqueness, edgeUniqueness>::
// In case we have VertexUniquenessLevel::GLOBAL, we do not have to take
// care about the EdgeUniquenessLevel.
auto const& [unusedV, addedVertex] =
_uniqueVertices.emplace(step.getVertexIdentifier());
_uniqueVertices.emplace(step.getVertex().getID());
// If this add fails, we need to exclude this path
if (!addedVertex) {
return ValidationResult::Type::FILTER_AND_PRUNE;
Expand Down Expand Up @@ -186,7 +186,7 @@ auto PathValidator<ProviderType, PathStore, vertexUniqueness, edgeUniqueness>::
// If otherUniqueVertices has our step, we will return false and
// abort. Otherwise we'll return true here. This guarantees we have no
// vertex on both sides of the path twice.
return otherUniqueVertices.find(innerStep.getVertexIdentifier()) ==
return otherUniqueVertices.find(innerStep.getVertex().getID()) ==
otherUniqueVertices.end();
});
if (!success) {
Expand Down