1
0
Fork 0

Now AgencyComm only communicates via VPack to Agency. A mix of TRI_json_t and VPack is impossible do to different ordering when comparing values

This commit is contained in:
Michael Hackstein 2016-01-19 15:37:48 +01:00
parent 7f4980e87d
commit 1edd5b3007
1 changed files with 3 additions and 10 deletions

View File

@ -928,16 +928,9 @@ AgencyCommResult AgencyComm::createDirectory(std::string const& key) {
AgencyCommResult AgencyComm::setValue(std::string const& key,
TRI_json_t const* json, double ttl) {
AgencyCommResult result;
sendWithFailover(triagens::rest::HttpRequest::HTTP_REQUEST_PUT,
_globalConnectionOptions._requestTimeout, result,
buildUrl(key) + ttlParam(ttl, true),
"value=" + triagens::basics::StringUtils::urlEncode(
triagens::basics::JsonHelper::toString(json)),
false);
return result;
// Only temporary
auto builder = triagens::basics::JsonHelper::toVelocyPack(json);
return setValue(key, builder->slice(), ttl);
}
////////////////////////////////////////////////////////////////////////////////