MCPcopy Create free account
hub / github.com/apple/foundationdb / calculateHealthyMachineCount

Method calculateHealthyMachineCount

fdbserver/DDTeamCollection.actor.cpp:4337–4346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4335}
4336
4337int DDTeamCollection::calculateHealthyMachineCount() const {
4338 int totalHealthyMachineCount = 0;
4339 for (auto& m : machine_info) {
4340 if (isMachineHealthy(m.second)) {
4341 ++totalHealthyMachineCount;
4342 }
4343 }
4344
4345 return totalHealthyMachineCount;
4346}
4347
4348std::pair<int64_t, int64_t> DDTeamCollection::calculateMinMaxServerTeamsOnServer() const {
4349 int64_t minTeams = std::numeric_limits<int64_t>::max();

Calls

no outgoing calls

Tested by

no test coverage detected