add assert

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1175397 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2011-09-25 14:10:42 +00:00
parent f0ca4c49ef
commit 2028a88d4f
1 changed files with 3 additions and 0 deletions

View File

@ -322,6 +322,9 @@ public class BlockJoinQuery extends Query {
return parentDoc = NO_MORE_DOCS;
}
// Every parent must have at least one child:
assert parentTarget != 0;
final int prevParentDoc = parentBits.prevSetBit(parentTarget-1);
//System.out.println(" rolled back to prevParentDoc=" + prevParentDoc + " vs parentDoc=" + parentDoc);