Skip to content

Commit cb9a7f5

Browse files
committed
fencepost
1 parent 1249286 commit cb9a7f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/fielddata/fieldcomparator/LongValuesComparatorSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public int nextDoc() throws IOException {
228228

229229
@Override
230230
public int advance(int target) throws IOException {
231-
if (target > maxDoc) {
231+
if (target >= maxDoc) {
232232
return doc = NO_MORE_DOCS;
233233
}
234234
// All documents are guaranteed to have a value, as all invocations of getLongValues

0 commit comments

Comments
 (0)