Mark a team as unhealthy when it is removed

This commit is contained in:
A.J. Beamon 2022-04-29 12:40:41 -07:00
parent c8b1662ab7
commit 5eedcafcfb
2 changed files with 2 additions and 1 deletions

View File

@ -4762,6 +4762,7 @@ bool DDTeamCollection::removeTeam(Reference<TCTeamInfo> team) {
ASSERT_WE_THINK(foundInMachineTeam);
team->tracker.cancel();
team->setHealthy(false);
if (g_network->isSimulated()) {
// Update server team information for consistency check in simulation
traceTeamCollectionInfo();

View File

@ -65,7 +65,7 @@ struct IDataDistributionTeam {
std::string getDesc() const {
const auto& servers = getLastKnownServerInterfaces();
std::string s = format("TeamID:%s", getTeamID().c_str());
std::string s = format("TeamID %s; ", getTeamID().c_str());
s += format("Size %d; ", servers.size());
for (int i = 0; i < servers.size(); i++) {
if (i)