Skip to content

Commit 8cec26d

Browse files
committed
doh
1 parent a1aa676 commit 8cec26d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/codec/vectors/DefaultIVFVectorsReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public int resetPostingsScorer(long offset) throws IOException {
369369
centroidDp = Float.intBitsToFloat(indexInput.readInt());
370370
vectors = indexInput.readVInt();
371371
// read the doc ids
372-
assert vectors < docIdsScratch.length;
372+
assert vectors <= docIdsScratch.length;
373373
docIdsWriter.readInts(indexInput, vectors, docIdsScratch);
374374
slicePos = indexInput.getFilePointer();
375375
return vectors;

0 commit comments

Comments
 (0)