mirror of https://gitee.com/bigwinds/arangodb
some minor warnings
This commit is contained in:
parent
c775b92d7d
commit
7587053ffc
|
@ -65,7 +65,7 @@ const std::vector<std::string> AgencyTransaction::TypeUrl(
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
AgencyPrecondition::AgencyPrecondition()
|
AgencyPrecondition::AgencyPrecondition()
|
||||||
: type(AgencyPrecondition::Type::NONE) {}
|
: type(AgencyPrecondition::Type::NONE), empty(true) {}
|
||||||
|
|
||||||
AgencyPrecondition::AgencyPrecondition(std::string const& key, Type t, bool e)
|
AgencyPrecondition::AgencyPrecondition(std::string const& key, Type t, bool e)
|
||||||
: key(AgencyCommManager::path(key)), type(t), empty(e) {}
|
: key(AgencyCommManager::path(key)), type(t), empty(e) {}
|
||||||
|
|
|
@ -239,8 +239,6 @@ bool Inception::restartingActiveAgent() {
|
||||||
auto s = std::chrono::system_clock::now();
|
auto s = std::chrono::system_clock::now();
|
||||||
std::chrono::seconds timeout(60);
|
std::chrono::seconds timeout(60);
|
||||||
|
|
||||||
long waitInterval(500000);
|
|
||||||
|
|
||||||
// Can only be done responcibly, if we are complete
|
// Can only be done responcibly, if we are complete
|
||||||
if (myConfig.poolComplete()) {
|
if (myConfig.poolComplete()) {
|
||||||
|
|
||||||
|
@ -249,6 +247,8 @@ bool Inception::restartingActiveAgent() {
|
||||||
|
|
||||||
CONDITION_LOCKER(guard, _cv);
|
CONDITION_LOCKER(guard, _cv);
|
||||||
|
|
||||||
|
long waitInterval(500000);
|
||||||
|
|
||||||
while (!this->isStopping() && !_agent->isStopping()) {
|
while (!this->isStopping() && !_agent->isStopping()) {
|
||||||
|
|
||||||
active.erase(
|
active.erase(
|
||||||
|
|
Loading…
Reference in New Issue