Skip to content

Commit a64ab57

Browse files
committed
JAVA-1119: Fixed off-by-one error in UnorderedRunGenerator
1 parent 54c5914 commit a64ab57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/com/mongodb/DBCollectionImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ public Run next() {
632632
}
633633
run.add(writeRequest, curIndex);
634634
curIndex++;
635-
if (run.size() > maxBatchWriteSize) {
635+
if (run.size() == maxBatchWriteSize) {
636636
return runs.remove(run.type);
637637
}
638638
}

0 commit comments

Comments
 (0)