Skip to content

Commit

Permalink
Added isDisjoint and isSmart to serialization of GraphNodes (arangodb…
Browse files Browse the repository at this point in the history
  • Loading branch information
mchacki authored May 11, 2020
1 parent acdef8a commit e6090b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arangod/Aql/GraphNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ GraphNode::GraphNode(ExecutionPlan* plan, arangodb::velocypack::Slice const& bas
_defaultDirection(uint64ToDirection(arangodb::basics::VelocyPackHelper::stringUInt64(
base.get("defaultDirection")))),
_optionsBuilt(false),
_isSmart(false) {
_isSmart(arangodb::basics::VelocyPackHelper::getBooleanValue(base, "isSmart", false)),
_isDisjoint(arangodb::basics::VelocyPackHelper::getBooleanValue(base, "isDisjoint", false)) {
auto thread_local const isDBServer = ServerState::instance()->isDBServer();

if (!isDBServer) {
Expand Down Expand Up @@ -574,6 +575,10 @@ void GraphNode::toVelocyPackHelper(VPackBuilder& nodes, unsigned flags,
edgeOutVariable()->toVelocyPack(nodes);
}

// Flags
nodes.add("isSmart", VPackValue(_isSmart));
nodes.add("isDisjoint", VPackValue(_isDisjoint));

// Temporary AST Nodes for conditions
TRI_ASSERT(_tmpObjVariable != nullptr);
nodes.add(VPackValue("tmpObjVariable"));
Expand Down

0 comments on commit e6090b1

Please sign in to comment.