mirror of https://gitee.com/bigwinds/arangodb
Unvirtualized toJson of Traversal Node. Base Class toJson is required in Cluster. Explainer requires specific toJson
This commit is contained in:
parent
7290507c25
commit
cda189d5ca
|
@ -311,7 +311,10 @@ void TraversalNode::toJsonHelper (triagens::basics::Json& nodes,
|
|||
map.second.size());
|
||||
for (auto const & x : map.second) {
|
||||
triagens::basics::Json exp(zone, triagens::basics::Json::Object);
|
||||
x->toJson(exp, zone);
|
||||
auto tmp = dynamic_cast<SimpleTraverserExpression*>(x);
|
||||
if (tmp != nullptr) {
|
||||
tmp->toJson(exp, zone);
|
||||
}
|
||||
expressionArray(exp);
|
||||
}
|
||||
expressionObject.set(std::to_string(map.first), expressionArray);
|
||||
|
|
|
@ -125,8 +125,8 @@ namespace triagens {
|
|||
}
|
||||
}
|
||||
|
||||
virtual void toJson (triagens::basics::Json& json,
|
||||
TRI_memory_zone_t* zone) const;
|
||||
void toJson (triagens::basics::Json& json,
|
||||
TRI_memory_zone_t* zone) const;
|
||||
|
||||
bool matchesCheck (TRI_doc_mptr_t& element,
|
||||
TRI_document_collection_t* collection,
|
||||
|
|
Loading…
Reference in New Issue