update busyness for each server
| 475 | |
| 476 | // update busyness for each server |
| 477 | void launch(RelocateData& relocation, std::map<UID, Busyness>& busymap, int singleRegionTeamSize) { |
| 478 | // if we are here this means that we can launch and should adjust all the work the servers can do |
| 479 | relocation.workFactor = getSrcWorkFactor(relocation, singleRegionTeamSize); |
| 480 | for (int i = 0; i < relocation.src.size(); i++) |
| 481 | busymap[relocation.src[i]].addWork(relocation.priority, relocation.workFactor); |
| 482 | } |
| 483 | |
| 484 | void launchDest(RelocateData& relocation, |
| 485 | const std::vector<std::pair<Reference<IDataDistributionTeam>, bool>>& candidateTeams, |
no test coverage detected