ifesdjeen commented on code in PR #3054:
URL: https://github.com/apache/cassandra/pull/3054#discussion_r1469371266
##########
src/java/org/apache/cassandra/index/sai/iterators/KeyRangeIntersectionIterator.java:
##########
@@ -56,52 +62,82 @@ private KeyRangeIntersectionIterator(Builder.Statistics
statistics, List<KeyRang
@Override
protected PrimaryKey computeNext()
{
- // Range iterator that has been advanced in the previous cycle of the
outer loop.
- // Initially there hasn't been the previous cycle, so set to null.
- int alreadyAvanced = -1;
-
- // The highest primary key seen on any range iterator so far.
+ // Advance one iterator to the next key and remember the key as the
highest seen so far.
// It can become null when we reach the end of the iterator.
- PrimaryKey highestKey = getCurrent();
+ // If there are both static and non-static keys being iterated here,
we advacne a non-static one,
Review Comment:
Nit: advacne -> advance
--
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]