Addressed review comments.

This commit is contained in:
nvharikrishna 2026-07-23 02:06:01 +05:30
parent cb21442409
commit 1710e84c40
1 changed files with 1 additions and 1 deletions

View File

@ -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.