1
0
Fork 0

before cppcheck enthusiasts start slacking :)

This commit is contained in:
Kaveh Vahedipour 2017-01-20 15:22:30 +01:00
parent d2760f4ef1
commit 163e0158dc
1 changed files with 2 additions and 4 deletions

View File

@ -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;