mirror of https://github.com/apache/lucene.git
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:
parent
f0ca4c49ef
commit
2028a88d4f
|
@ -322,6 +322,9 @@ public class BlockJoinQuery extends Query {
|
||||||
return parentDoc = NO_MORE_DOCS;
|
return parentDoc = NO_MORE_DOCS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Every parent must have at least one child:
|
||||||
|
assert parentTarget != 0;
|
||||||
|
|
||||||
final int prevParentDoc = parentBits.prevSetBit(parentTarget-1);
|
final int prevParentDoc = parentBits.prevSetBit(parentTarget-1);
|
||||||
|
|
||||||
//System.out.println(" rolled back to prevParentDoc=" + prevParentDoc + " vs parentDoc=" + parentDoc);
|
//System.out.println(" rolled back to prevParentDoc=" + prevParentDoc + " vs parentDoc=" + parentDoc);
|
||||||
|
|
Loading…
Reference in New Issue