Nit fixing

This commit is contained in:
Zhe Wu 2023-06-21 09:25:51 -07:00
parent aac6d95182
commit 36befca2ba
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ public:
}
// Returns the overall best team that matches the requirement from `req`. When preferWithinShardLimit is true, it
// also tries to select a team whose existing team is less than SERVER_KNOBS->DESIRED_MAX_SHARDS_PER_TEAM.
// also tries to select a team whose existing shard is less than SERVER_KNOBS->DESIRED_MAX_SHARDS_PER_TEAM.
static Optional<Reference<IDataDistributionTeam>> getBestTeam(DDTeamCollection* self,
const GetTeamRequest& req,
bool preferWithinShardLimit) {

View File

@ -1319,7 +1319,7 @@ ACTOR Future<Void> healthMonitor(Reference<AsyncVar<Optional<ClusterControllerFu
if (!req.disconnectedPeers.empty() || !req.degradedPeers.empty() || !req.recoveredPeers.empty()) {
if (g_network->isSimulated()) {
// Do invarant check only in simulation.
// Do an invariant check only in simulation.
// Any recovered peer shouldn't appear as disconnected or degraded peer.
for (const auto& recoveredPeer : req.recoveredPeers) {
for (const auto& disconnectedPeer : req.disconnectedPeers) {