summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2018-03-30 12:22:58 -0400
committerCharlie Swanson <charlie.swanson@mongodb.com>2018-04-02 10:30:08 -0400
commitd9c3639f29758235732a89ad7136dee6715206e5 (patch)
tree1f167b053e827e281194863c71cb03cc63fa4091
parent4254a6af2dcce00faefb8c98ba1e1f859cb955e3 (diff)
downloadmongo-d9c3639f29758235732a89ad7136dee6715206e5.tar.gz
SERVER-34213 Start _id at 0 in testshard1.js
-rw-r--r--jstests/aggregation/testshard1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/aggregation/testshard1.js b/jstests/aggregation/testshard1.js
index 6ecd68bfc27..25cb0689e97 100644
--- a/jstests/aggregation/testshard1.js
+++ b/jstests/aggregation/testshard1.js
@@ -40,7 +40,7 @@ var strings = [
jsTestLog("Bulk inserting data");
var nItems = 200000;
var bulk = db.ts1.initializeUnorderedBulkOp();
-for (i = 1; i <= nItems; ++i) {
+for (i = 0; i < nItems; ++i) {
bulk.insert({
_id: i,
counter: ++count,