1
0
Fork 0
This commit is contained in:
Andreas Streichardt 2016-05-02 15:20:31 +02:00
parent 60cf2c6357
commit b55ac05a49
2 changed files with 3 additions and 2 deletions

View File

@ -1427,10 +1427,11 @@ var handlePlanChange = function () {
try {
cb.apply(null, args);
global.ArangoAgency.increaseVersion(lockInfo.part + "/Version");
global.ArangoAgency.unlockWrite(lockInfo.part, timeout);
let version = global.ArangoAgency.get(lockInfo.part + "/Version");
versions[lockInfo.part.toLowerCase()] = version[lockInfo.part + "/Version"];
global.ArangoAgency.unlockWrite(lockInfo.part, timeout);
}
catch (err) {
global.ArangoAgency.unlockWrite(lockInfo.part, timeout);

View File

@ -41,7 +41,7 @@ namespace httpclient {
/// @brief empty map, used for headers
////////////////////////////////////////////////////////////////////////////////
std::unordered_map<std::string, std::string> const SimpleHttpClient::NO_HEADERS = {};
std::unordered_map<std::string, std::string> const SimpleHttpClient::NO_HEADERS {};
// -----------------------------------------------------------------------------
// constructors and destructors