ifesdjeen commented on code in PR #4919:
URL: https://github.com/apache/cassandra/pull/4919#discussion_r3560108998


##########
src/java/org/apache/cassandra/db/RangeTombstoneList.java:
##########
@@ -677,8 +710,12 @@ private void addInternal(int i, ClusteringBound<?> start, 
ClusteringBound<?> end
 
         if (size == capacity())
             growToFree(i);
-        else if (i < size)
-            moveElements(i);
+        else

Review Comment:
   Maybe worth mentioning in a comment that `growToFree` would allocate arrays 
anyways, so we do not need to `isolate` in addition. 



-- 
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]

Reply via email to