1
0
Fork 0

Fixed filtered edges for an empty list of expressions.

This commit is contained in:
Michael Hackstein 2016-09-01 11:40:48 +02:00
parent f53a308c4d
commit 81bc1c67e7
1 changed files with 4 additions and 4 deletions

View File

@ -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/";