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

Function launchDest

fdbserver/DataDistributionQueue.actor.cpp:484–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484void launchDest(RelocateData& relocation,
485 const std::vector<std::pair<Reference<IDataDistributionTeam>, bool>>& candidateTeams,
486 std::map<UID, Busyness>& destBusymap) {
487 ASSERT(relocation.completeDests.empty());
488 int destWorkFactor = getDestWorkFactor();
489 for (auto& [team, _] : candidateTeams) {
490 for (UID id : team->getServerIDs()) {
491 relocation.completeDests.push_back(id);
492 destBusymap[id].addWork(relocation.priority, destWorkFactor);
493 }
494 }
495}
496void completeDest(RelocateData const& relocation, std::map<UID, Busyness>& destBusymap) {
497 int destWorkFactor = getDestWorkFactor();
498 for (UID id : relocation.completeDests) {

Calls 4

getDestWorkFactorFunction · 0.85
addWorkMethod · 0.80
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected