omniCoder77 commented on code in PR #4596:
URL: https://github.com/apache/cassandra/pull/4596#discussion_r2749240653
##########
src/java/org/apache/cassandra/cql3/QueryProcessor.java:
##########
@@ -513,6 +522,62 @@ public static Prepared parseAndPrepare(String query,
ClientState clientState, bo
return res;
}
+ private static void checkMispreparedGuardrail(CQLStatement statement,
ClientState clientState)
+ {
+ if (clientState.isInternal)
Review Comment:
I remove the clientState.isInternal check, is `checkMispreparedGuardrail` is
called only if it's false.
at line
[218](https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/cql3/QueryProcessor.java#L218)
isInternal parameter parameter is false, but clientState is
`ClientState.forInternalCalls()`, hence clientState.isInternal will be true.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]