Apache Solr open-source search software
fix silly bug in CheckIndex's checking of increasing positions
Michael McCandless9b0f9934c36d
diff --git a/src/java/org/apache/lucene/index/CheckIndex.java b/src/java/org/apache/lucene/index/CheckIndex.javaindex 4c7eaa2238d..36b0ba857f3 100644--- a/src/java/org/apache/lucene/index/CheckIndex.java+++ b/src/java/org/apache/lucene/index/CheckIndex.java@@ -657,6 +657,7 @@ public class CheckIndex {throw new RuntimeException("term " + term + ": doc " + doc + ": pos " + pos + " is out of bounds");if (pos < lastPos)throw new RuntimeException("term " + term + ": doc " + doc + ": pos " + pos + " < lastPos " + lastPos);+ lastPos = pos;}}