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

Method getMachineIDsStr

fdbserver/TCInfo.actor.cpp:297–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297std::string TCMachineTeamInfo::getMachineIDsStr() const {
298 std::stringstream ss;
299
300 if (machineIDs.empty())
301 return "[unset]";
302
303 for (const auto& id : machineIDs) {
304 ss << id.contents().toString() << " ";
305 }
306
307 return std::move(ss).str();
308}
309
310TCTeamInfo::TCTeamInfo(std::vector<Reference<TCServerInfo>> const& servers, Optional<Reference<TCTenantInfo>> tenant)
311 : servers(servers), tenant(tenant), healthy(true), wrongConfiguration(false),

Calls 4

moveFunction · 0.85
emptyMethod · 0.45
toStringMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected