fix: coordinators auto could added 0.0.0.0:0 as a coordinator

This commit is contained in:
Evan Tschannen 2020-02-14 16:50:55 -08:00
parent 693e469003
commit 663d176fdb
1 changed files with 1 additions and 2 deletions

View File

@ -1120,8 +1120,7 @@ struct AutoQuorumChange : IQuorumChange {
*err = CoordinatorsResult::NOT_ENOUGH_MACHINES;
return vector<NetworkAddress>();
}
desiredCount = std::max(oldCoordinators.size(), (workers.size() - 1) | 1);
chosen.resize(desiredCount);
chosen.resize((chosen.size() - 1) | 1);
}
return chosen;