mirror of https://gitee.com/bigwinds/arangodb
fixed typo in define (#9945)
This commit is contained in:
parent
3011846025
commit
a0852d33a2
|
@ -37,7 +37,7 @@ EdgeConditionBuilder::EdgeConditionBuilder(AstNode* modCondition)
|
|||
_toCondition(nullptr),
|
||||
_modCondition(modCondition),
|
||||
_containsCondition(false) {
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
if (_modCondition != nullptr) {
|
||||
TRI_ASSERT(_modCondition->type == NODE_TYPE_OPERATOR_NARY_AND);
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ void EdgeConditionBuilder::swapSides(AstNode* cond) {
|
|||
TRI_ASSERT(cond == _fromCondition || cond == _toCondition);
|
||||
TRI_ASSERT(cond->type == NODE_TYPE_OPERATOR_BINARY_EQ);
|
||||
if (_containsCondition) {
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
// If used correctly this class guarantuees that the last element
|
||||
// of the nary-and is the _from or _to part and is exchangable.
|
||||
TRI_ASSERT(_modCondition->numMembers() > 0);
|
||||
|
|
|
@ -150,7 +150,7 @@ TraversalNode::TraversalNode(ExecutionPlan* plan, size_t id, TRI_vocbase_t* vocb
|
|||
_pruneExpression->variables(_pruneVariables);
|
||||
}
|
||||
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
checkConditionsDefined();
|
||||
#endif
|
||||
}
|
||||
|
@ -265,7 +265,7 @@ TraversalNode::TraversalNode(ExecutionPlan* plan, arangodb::velocypack::Slice co
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
checkConditionsDefined();
|
||||
#endif
|
||||
}
|
||||
|
@ -567,7 +567,7 @@ ExecutionNode* TraversalNode::clone(ExecutionPlan* plan, bool withDependencies,
|
|||
c->_conditionVariables.emplace(it->clone());
|
||||
}
|
||||
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
checkConditionsDefined();
|
||||
#endif
|
||||
|
||||
|
@ -597,7 +597,7 @@ ExecutionNode* TraversalNode::clone(ExecutionPlan* plan, bool withDependencies,
|
|||
c->_vertexConditions.emplace(it.first, it.second->clone(_plan->getAst()));
|
||||
}
|
||||
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
c->checkConditionsDefined();
|
||||
#endif
|
||||
|
||||
|
@ -763,7 +763,7 @@ void TraversalNode::getPruneVariables(std::vector<Variable const*>& res) const {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
void TraversalNode::checkConditionsDefined() const {
|
||||
TRI_ASSERT(_tmpObjVariable != nullptr);
|
||||
TRI_ASSERT(_tmpObjVarNode != nullptr);
|
||||
|
|
|
@ -194,7 +194,7 @@ class TraversalNode : public GraphNode {
|
|||
Expression* pruneExpression() const { return _pruneExpression.get(); }
|
||||
|
||||
private:
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
void checkConditionsDefined() const;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue