pranavshenoy commented on code in PR #4909:
URL: https://github.com/apache/cassandra/pull/4909#discussion_r3549026014
##########
src/java/org/apache/cassandra/index/sai/memory/MemtableTermsIterator.java:
##########
@@ -98,11 +115,20 @@ private PostingList postings()
assert list.size() > 0;
- final long minSegmentRowID = list.get(0);
- final long maxSegmentRowID = list.get(list.size() - 1);
-
- minSSTableRowId = Math.min(minSSTableRowId, minSegmentRowID);
- maxSSTableRowId = Math.max(maxSSTableRowId, maxSegmentRowID);
+ if (isV2)
+ {
+ for (int i = V2_HEADER_SIZE; i < list.size(); i++)
Review Comment:
TODO: if the exactPostingsList and prefixPostingsList are sorted seperately,
then we don't need the loop
--
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]