mirror of https://gitee.com/bigwinds/arangodb
fix init
This commit is contained in:
parent
60cf2c6357
commit
b55ac05a49
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue