Make DDTeamCollection::addTeamsBestOf private

This commit is contained in:
sfc-gh-tclinkenbeard 2022-03-11 00:11:51 -04:00
parent 7a5105a9d5
commit 0f8435e407
1 changed files with 6 additions and 6 deletions

View File

@ -585,6 +585,12 @@ class DDTeamCollection : public ReferenceCounted<DDTeamCollection> {
addTeam(team.begin(), team.end(), isInitialTeam);
}
// Create server teams based on machine teams
// Before the number of machine teams reaches the threshold, build a machine team for each server team
// When it reaches the threshold, first try to build a server team with existing machine teams; if failed,
// build an extra machine team and record the event in trace
int addTeamsBestOf(int teamsToBuild, int desiredTeams, int maxTeams);
public:
Database cx;
@ -633,12 +639,6 @@ public:
Future<Void> init(Reference<InitialDataDistribution> initTeams, DDEnabledState const& ddEnabledState);
// Create server teams based on machine teams
// Before the number of machine teams reaches the threshold, build a machine team for each server team
// When it reaches the threshold, first try to build a server team with existing machine teams; if failed,
// build an extra machine team and record the event in trace
int addTeamsBestOf(int teamsToBuild, int desiredTeams, int maxTeams);
void addServer(StorageServerInterface newServer,
ProcessClass processClass,
Promise<Void> errorOut,