summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/sharding/libs/defragmentation_util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/libs/defragmentation_util.js b/jstests/sharding/libs/defragmentation_util.js
index aa861e61a7f..f67318781bb 100644
--- a/jstests/sharding/libs/defragmentation_util.js
+++ b/jstests/sharding/libs/defragmentation_util.js
@@ -57,7 +57,7 @@ var defragmentationUtil = (function() {
let chunkSize = Random.randInt(maxChunkFillMB);
let docsPerChunk = (chunkSize * 1024 * 1024) / docSizeBytes;
if (docsPerChunk === 0) {
- docsPerChunk = 1;
+ return;
}
let minKey = chunk["min"]["key"];
if (minKey === MinKey)