Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

JAVA-1119: Fixed off-by-one error in UnorderedRunGenerator

  • Loading branch information...
commit a64ab5719396f8a25e9be069039217340128c21d 1 parent 54c5914
@jyemin jyemin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/main/com/mongodb/DBCollectionImpl.java
View
2  src/main/com/mongodb/DBCollectionImpl.java
@@ -632,7 +632,7 @@ public Run next() {
}
run.add(writeRequest, curIndex);
curIndex++;
- if (run.size() > maxBatchWriteSize) {
+ if (run.size() == maxBatchWriteSize) {
return runs.remove(run.type);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.