dcapwell commented on code in PR #4556:
URL: https://github.com/apache/cassandra/pull/4556#discussion_r2683662019
##########
src/java/org/apache/cassandra/cql3/statements/ModificationStatement.java:
##########
@@ -1145,6 +1150,74 @@ private UpdateParameters
makeUpdateParameters(Collection<ByteBuffer> keys,
lists);
}
+ private long calculateMutationSize(List<? extends IMutation> mutations)
+ {
+ long totalSize = 0;
+ for (IMutation mutation : mutations)
+ {
+ for (PartitionUpdate update : mutation.getPartitionUpdates())
+ {
+ totalSize += update.dataSize();
+ }
+ }
+ return totalSize;
+ }
+
+ private int countTombstones(List<? extends IMutation> mutations)
+ {
+ int totalTombstones = 0;
+ for (IMutation mutation : mutations)
+ {
+ for (PartitionUpdate update : mutation.getPartitionUpdates())
+ {
+ totalTombstones += update.affectedRowCount();
Review Comment:
this method doesn't have anything to do with tombstones
--
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]