Skip to content
Closed
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
Simplify Step code
  • Loading branch information
markuspf committed Nov 28, 2025
commit e4abe36d6e0ce6cffea122e7a051d48637f5a2d4
4 changes: 2 additions & 2 deletions arangod/Graph/Providers/ClusterProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,9 @@ auto ClusterProvider<StepImpl>::fetchVertices(
// in that case we do not have to fetch the actual vertex data

for (auto& lE : looseEnds) {
if (!_opts.getCache()->isVertexCached(lE->getVertexIdentifier())) {
if (!_opts.getCache()->isVertexCached(lE->getVertex().getID())) {
// we'll only cache the vertex id, we do not need the data
_opts.getCache()->cacheVertex(lE->getVertexIdentifier(),
_opts.getCache()->cacheVertex(lE->getVertex().getID(),
VPackSlice::nullSlice());
}
result.emplace_back(lE);
Expand Down
5 changes: 0 additions & 5 deletions arangod/Graph/Steps/ClusterProviderStep.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,6 @@ class ClusterProviderStep : public arangodb::graph::BaseStep {
}
bool isUnknown() const noexcept { return _validationStatus.isUnknown(); }

// beware: returns a *copy* of the vertex id
[[nodiscard]] VertexType getVertexIdentifier() const {
return _vertex.getID();
}

// beware: returns a *copy* of the edge id
[[nodiscard]] EdgeType getEdgeIdentifier() const { return _edge.getID(); }

Expand Down
3 changes: 0 additions & 3 deletions arangod/Graph/Steps/SingleServerProviderStep.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ class SingleServerProviderStep : public arangodb::graph::BaseStep {
bool isLooseEnd() const { return false; }
bool isUnknown() const { return false; }

// beware: will return a *copy* of the vertex id
VertexType getVertexIdentifier() const { return _vertex.getID(); }

// beware: will return a *copy* of the edge id
EdgeType getEdgeIdentifier() const { return _edge.getID(); }

Expand Down