mirror of https://github.com/apache/cassandra
Addressed review comments.
This commit is contained in:
parent
cb21442409
commit
1710e84c40
|
|
@ -184,7 +184,7 @@ public class CMSOperations implements CMSOperationsMBean
|
|||
private void guardMinimumCmsSize(ReplicationParams params)
|
||||
{
|
||||
ClusterMetadata metadata = ClusterMetadata.current();
|
||||
int minCmsSize = DatabaseDescriptor.getGuardrailsConfig().getMinimumCmsSizeFailThreshold();
|
||||
int minCmsSize = Guardrails.instance.getMinimumCmsSizeFailThreshold();
|
||||
int totalNodes = metadata.directory.allJoinedEndpoints().size();
|
||||
// Skip clusters smaller than the threshold: they cannot host that many replicas yet (e.g. during bootstrap).
|
||||
// When the guardrail is disabled this is never true, and guard() below is then a no-op.
|
||||
|
|
|
|||
Loading…
Reference in New Issue