mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel
This commit is contained in:
commit
abb16eeb0f
|
@ -77,8 +77,7 @@ void Graph::toVelocyPack(VPackBuilder& builder, bool verbose) const {
|
|||
}
|
||||
}
|
||||
|
||||
Graph::Graph(VPackSlice const& info) : _vertexColls(), _edgeColls() {
|
||||
VPackSlice const slice = info.resolveExternal();
|
||||
Graph::Graph(VPackSlice const& slice) : _vertexColls(), _edgeColls() {
|
||||
if (slice.hasKey(_attrEdgeDefs)) {
|
||||
auto edgeDefs = slice.get(_attrEdgeDefs);
|
||||
|
||||
|
|
|
@ -71,7 +71,11 @@ arangodb::aql::Graph* arangodb::lookupGraphByName(TRI_vocbase_t* vocbase,
|
|||
THROW_ARANGO_EXCEPTION_FORMAT(res, "while looking up graph '%s'",
|
||||
name.c_str());
|
||||
}
|
||||
VPackSlice info = result.slice();
|
||||
if (result.isExternal()) {
|
||||
info = info.resolveExternal();
|
||||
}
|
||||
|
||||
return new arangodb::aql::Graph(result.slice());
|
||||
return new arangodb::aql::Graph(info);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue