smiklosovic commented on code in PR #3605:
URL: https://github.com/apache/cassandra/pull/3605#discussion_r1793645797
##########
src/java/org/apache/cassandra/cql3/QueryProcessor.java:
##########
@@ -149,11 +153,13 @@ public void preloadPreparedStatements()
clientState.setKeyspace(keyspace);
Prepared prepared = parseAndPrepare(query, clientState, false);
Review Comment:
`parseAndPrepare` might return `Prepared` with initialized size already so
everything which will be needed after this like would be
`preparedStatements.put(id, prepared)`
##########
src/java/org/apache/cassandra/cql3/QueryProcessor.java:
##########
@@ -149,11 +153,13 @@ public void preloadPreparedStatements()
clientState.setKeyspace(keyspace);
Prepared prepared = parseAndPrepare(query, clientState, false);
Review Comment:
`parseAndPrepare` might return `Prepared` with initialized size already so
everything what will be needed after this like would be
`preparedStatements.put(id, prepared)`
--
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]