Permalink
Browse files

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

  • Loading branch information...
jyemin committed Feb 28, 2014
1 parent 54c5914 commit a64ab5719396f8a25e9be069039217340128c21d
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}
}

0 comments on commit a64ab57

Please sign in to comment.