Skip to content

Commit 02ebb8a

Browse files
committed
harden
1 parent 1c0dd56 commit 02ebb8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/lucene/LuceneSourceOperator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public void collect(int doc) throws IOException {
140140

141141
@Override
142142
public boolean isFinished() {
143-
return doneCollecting || remainingDocs == 0;
143+
return doneCollecting || remainingDocs <= 0;
144144
}
145145

146146
@Override

0 commit comments

Comments
 (0)