We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33140d0 commit 483202eCopy full SHA for 483202e
opengrok-indexer/src/main/java/org/opengrok/indexer/index/IndexDatabase.java
@@ -637,7 +637,10 @@ public void update() throws IOException {
637
try {
638
if (terms != null) {
639
uidIter = terms.iterator();
640
- TermsEnum.SeekStatus stat = uidIter.seekCeil(new BytesRef(startUid)); //init uid
+ // The seekCeil() is pretty important because it makes uidIter.term() to become non-null.
641
+ // Various indexer methods rely on this when working with the uidIter iterator - rather
642
+ // than calling uidIter.next() first thing, they check uidIter.term().
643
+ TermsEnum.SeekStatus stat = uidIter.seekCeil(new BytesRef(startUid));
644
if (stat == TermsEnum.SeekStatus.END) {
645
uidIter = null;
646
LOGGER.log(Level.WARNING,
0 commit comments