dcapwell commented on code in PR #4509:
URL: https://github.com/apache/cassandra/pull/4509#discussion_r2590241561
##########
src/java/org/apache/cassandra/cql3/UpdateParameters.java:
##########
@@ -274,6 +259,14 @@ public Row buildRow()
return built;
}
+ @Override
+ public void close()
+ {
+ if (builder == null) return;
+ builder.reset(); // Clear resources
Review Comment:
this logic isn't needed as much anymore, but if the row was rejected we are
able to clear it up and put back into the pool and reuse the memory.
--
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]