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


##########
src/java/org/apache/cassandra/utils/btree/BTree.java:
##########
@@ -4029,6 +4029,9 @@ private Object[] apply()
                 if (leaf().count == 0 && upos == 0)
                 {
                     int prev = 0;
+                    if (!remove.hasNext() || comparator.compare((K)unode[usz - 
1], remove.peek()) < 0)

Review Comment:
   Could you add a one-line comment about this optimization?



-- 
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: pr-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org
For additional commands, e-mail: pr-h...@cassandra.apache.org

Reply via email to