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

Method removeTeamsContainingServer

fdbserver/TCInfo.actor.cpp:195–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void TCServerInfo::removeTeamsContainingServer(UID removedServer) {
196 for (int t = 0; t < teams.size(); t++) {
197 auto const& serverIds = teams[t]->getServerIDs();
198 if (std::count(serverIds.begin(), serverIds.end(), removedServer)) {
199 teams[t--] = teams.back();
200 teams.pop_back();
201 }
202 }
203}
204
205std::pair<int64_t, int64_t> TCServerInfo::spaceBytes(bool includeInFlight) const {
206 auto& metrics = getMetrics();

Callers 1

removeServerMethod · 0.80

Calls 6

countFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
backMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected