We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27945a2 commit 2e3b99dCopy full SHA for 2e3b99d
src/main/perf/RandomQuery.java
@@ -54,7 +54,7 @@ public int nextDoc() throws IOException {
54
int addend = (31 * intervalId) % interval;
55
int newDoc = intervalId * interval + addend;
56
assert newDoc > doc;
57
- if (doc >= maxDoc) {
+ if (newDoc >= maxDoc) {
58
return doc = NO_MORE_DOCS;
59
} else {
60
return doc = newDoc;
0 commit comments