mirror of https://gitee.com/bigwinds/arangodb
before cppcheck enthusiasts start slacking :)
This commit is contained in:
parent
d2760f4ef1
commit
163e0158dc
|
@ -110,8 +110,6 @@ std::vector<check_t> Supervision::checkDBServers() {
|
|||
Node::Children const serversRegistered =
|
||||
_snapshot(currentServersRegisteredPrefix).children();
|
||||
|
||||
bool reportPersistent = false;
|
||||
|
||||
std::vector<std::string> todelete;
|
||||
for (auto const& machine : _snapshot(healthPrefix).children()) {
|
||||
if (machine.first.substr(0, 2) == "DB") {
|
||||
|
@ -121,6 +119,7 @@ std::vector<check_t> Supervision::checkDBServers() {
|
|||
|
||||
for (auto const& machine : machinesPlanned) {
|
||||
bool good = false;
|
||||
bool reportPersistent = false;
|
||||
std::string lastHeartbeatTime, lastHeartbeatAcked, lastStatus,
|
||||
heartbeatTime, heartbeatStatus, serverID;
|
||||
|
||||
|
@ -257,8 +256,6 @@ std::vector<check_t> Supervision::checkDBServers() {
|
|||
// Check all coordinators, guarded above doChecks
|
||||
std::vector<check_t> Supervision::checkCoordinators() {
|
||||
|
||||
bool reportPersistent = false;
|
||||
|
||||
std::vector<check_t> ret;
|
||||
Node::Children const& machinesPlanned =
|
||||
_snapshot(planCoordinatorsPrefix).children();
|
||||
|
@ -280,6 +277,7 @@ std::vector<check_t> Supervision::checkCoordinators() {
|
|||
}
|
||||
|
||||
for (auto const& machine : machinesPlanned) {
|
||||
bool reportPersistent = false;
|
||||
bool good = false;
|
||||
std::string lastHeartbeatTime, lastHeartbeatAcked, lastStatus,
|
||||
heartbeatTime, heartbeatStatus, serverID;
|
||||
|
|
Loading…
Reference in New Issue