jpountz commented on code in PR #12810:
URL: https://github.com/apache/lucene/pull/12810#discussion_r1403031948
##########
lucene/core/src/java/org/apache/lucene/codecs/MultiLevelSkipListReader.java:
##########
@@ -63,7 +63,7 @@ public abstract class MultiLevelSkipListReader implements
Closeable {
protected int[] skipDoc;
/** Doc id of last read skip entry with docId <= target. */
- private int lastDoc;
+ private int lastDoc = -1;
Review Comment:
Another good point. This one felt a bit less obvious to me because of how
it's used internally by unversioned codecs, e.g. SimpleText, but your point
about external codecs makes sense, I'll rename.
--
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]