mirror of https://github.com/apache/lucene.git
add assertion to check that skip pointer isn't past EOF
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1062810 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce53019db5
commit
924e745b06
|
@ -172,6 +172,8 @@ public abstract class MultiLevelSkipListReader {
|
|||
public void init(long skipPointer, int df) {
|
||||
this.skipPointer[0] = skipPointer;
|
||||
this.docCount = df;
|
||||
assert skipPointer >= 0 && skipPointer <= skipStream[0].length()
|
||||
: "invalid skip pointer: " + skipPointer + ", length=" + skipStream[0].length();
|
||||
Arrays.fill(skipDoc, 0);
|
||||
Arrays.fill(numSkipped, 0);
|
||||
Arrays.fill(childPointer, 0);
|
||||
|
|
Loading…
Reference in New Issue