lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r820368 - /lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java
Date Wed, 30 Sep 2009 18:18:17 GMT
Author: mikemccand
Date: Wed Sep 30 18:18:16 2009
New Revision: 820368

URL: http://svn.apache.org/viewvc?rev=820368&view=rev
Log:
fix silly bug in CheckIndex's checking of increasing positions

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java?rev=820368&r1=820367&r2=820368&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java Wed Sep 30 18:18:16
2009
@@ -657,6 +657,7 @@
               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;
           }
         }
 



Mime
View raw message