Apache Lucene open-source search software
LUCENE-5843: woops, I committed too much
Michael McCandlessac511e76fe35
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex aea1bacf45b..4fe37df567a 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -134,6 +134,12 @@ New Featuresof footer, this can detect some forms of corruption such as truncation.(Robert Muir)+* LUCENE-5843: Added IndexWriter.MAX_DOCS which is the maximum number+ of documents allowed in a single index, and any operations that add+ documents will now throw IllegalStateException if the max count+ would be exceeded, instead of silently creating an unusable+ index. (Mike McCandless)+API Changes* LUCENE-5752: Simplified Automaton API to be immutable. (Mike McCandless)@@ -215,12 +221,6 @@ Bug FixesInteger.MAX_VALUE - 8 for the maximum array size. (Robert Muir,Mike McCandless)-* LUCENE-5843: Added IndexWriter.MAX_DOCS which is the maximum number- of documents allowed in a single index, and any operations that add- documents will now throw IllegalStateException if the max count- would be exceeded, instead of silently creating an unusable- index. (Mike McCandless)-Test Framework* LUCENE-5786: Unflushed/ truncated events file (hung testing subprocess).diff --git a/lucene/core/src/java/org/apache/lucene/codecs/blocktree/SegmentTermsEnum.java b/lucene/core/src/java/org/apache/lucene/codecs/blocktree/SegmentTermsEnum.javaindex 0bf7b55e168..182587fc51d 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/blocktree/SegmentTermsEnum.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/blocktree/SegmentTermsEnum.java@@ -913,9 +913,7 @@ final class SegmentTermsEnum extends TermsEnum {// Pop finished blockswhile (currentFrame.nextEnt == currentFrame.entCount) {if (!currentFrame.isLastInFloor) {- // Advance to next floor blockcurrentFrame.loadNextFloorBlock();- break;} else {//if (DEBUG) System.out.println(" pop frame");if (currentFrame.ord == 0) {diff --git a/lucene/core/src/java/org/apache/lucene/codecs/blocktree/SegmentTermsEnumFrame.java b/lucene/core/src/java/org/apache/lucene/codecs/blocktree/SegmentTermsEnumFrame.javaindex c3bc8739adf..c888b1339b7 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/blocktree/SegmentTermsEnumFrame.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/blocktree/SegmentTermsEnumFrame.java@@ -539,10 +539,9 @@ final class SegmentTermsEnumFrame {// keep scanningif (nextEnt == entCount) {- // nocommit?- //if (exactOnly) {- //fillTerm();- //}+ if (exactOnly) {+ fillTerm();+ }// We are done scanning this blockbreak nextTerm;} else {@@ -659,11 +658,10 @@ final class SegmentTermsEnumFrame {// keep scanningif (nextEnt == entCount) {- // nocommit?- //if (exactOnly) {- //fillTerm();- //termExists = true;- //}+ if (exactOnly) {+ fillTerm();+ //termExists = true;+ }// We are done scanning this blockbreak nextTerm;} else {