fix silly bug in CheckIndex's checking of increasing positions

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@820368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-09-30 18:18:16 +00:00
parent ba5e4445a6
commit 9b0f9934c3
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}