We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd58af9 commit 42217bdCopy full SHA for 42217bd
1 file changed
src/main/java/utils/key/CircularKey.java
@@ -29,8 +29,10 @@ public String next(long docIndex) {
29
}
30
31
public boolean checkIterations() {
32
- // Can be both -1 (Infinite load) or greater than 1 (iterations set by user)
33
- if (this.iterations != 0) {
+ // Can be -1 (Infinite load) or >= 1 (iterations set by user)
+ // Stop when iterations reaches 1 (not 0) since first pass runs
34
+ // without calling checkIterations()
35
+ if (this.iterations != 1) {
36
if (this.iterations >= 1)
37
// Num_iterations set by user, so decrement by one
38
this.iterations -= 1;
0 commit comments