You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by GitBox <gi...@apache.org> on 2022/03/29 20:44:36 UTC

[GitHub] [cassandra] josh-mckenzie commented on a change in pull request #1533: CASSANDRA-17499 Remove global Guardrails Enable flag

josh-mckenzie commented on a change in pull request #1533:
URL: https://github.com/apache/cassandra/pull/1533#discussion_r837893047



##########
File path: src/java/org/apache/cassandra/cql3/statements/schema/CreateTableStatement.java
##########
@@ -125,10 +125,6 @@ public void validate(ClientState state)
     {
         super.validate(state);
 
-        // since there are multiple guardrails guarding this, we first check that guardrails are globally enabled as an
-        // optimization for the case where they are disabled, so we don't have to do the same check on every guardrail
-        if (Guardrails.enabled(state))
-        {
             // Guardrail on table properties

Review comment:
       Fix indentation on this block now that you've removed the Guardrails.enabled check




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org