mirror of https://gitee.com/bigwinds/arangodb
Fixed filtered edges for an empty list of expressions.
This commit is contained in:
parent
f53a308c4d
commit
81bc1c67e7
|
@ -1614,15 +1614,15 @@ int getFilteredEdgesOnCoordinator(
|
||||||
queryParameters += "&direction=out";
|
queryParameters += "&direction=out";
|
||||||
}
|
}
|
||||||
auto reqBodyString = std::make_shared<std::string>();
|
auto reqBodyString = std::make_shared<std::string>();
|
||||||
|
VPackBuilder bodyBuilder;
|
||||||
|
bodyBuilder.openArray();
|
||||||
if (!expressions.empty()) {
|
if (!expressions.empty()) {
|
||||||
VPackBuilder bodyBuilder;
|
|
||||||
bodyBuilder.openArray();
|
|
||||||
for (auto& e : expressions) {
|
for (auto& e : expressions) {
|
||||||
e->toVelocyPack(bodyBuilder);
|
e->toVelocyPack(bodyBuilder);
|
||||||
}
|
}
|
||||||
bodyBuilder.close();
|
|
||||||
reqBodyString->append(bodyBuilder.toJson());
|
|
||||||
}
|
}
|
||||||
|
bodyBuilder.close();
|
||||||
|
reqBodyString->append(bodyBuilder.toJson());
|
||||||
|
|
||||||
std::vector<ClusterCommRequest> requests;
|
std::vector<ClusterCommRequest> requests;
|
||||||
std::string baseUrl = "/_db/" + StringUtils::urlEncode(dbname) + "/_api/edges/";
|
std::string baseUrl = "/_db/" + StringUtils::urlEncode(dbname) + "/_api/edges/";
|
||||||
|
|
Loading…
Reference in New Issue