summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/indexbg_updates.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthroughWithMongod/indexbg_updates.js')
-rw-r--r--jstests/noPassthroughWithMongod/indexbg_updates.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/jstests/noPassthroughWithMongod/indexbg_updates.js b/jstests/noPassthroughWithMongod/indexbg_updates.js
index a660ffc6eeb..c3465f78047 100644
--- a/jstests/noPassthroughWithMongod/indexbg_updates.js
+++ b/jstests/noPassthroughWithMongod/indexbg_updates.js
@@ -15,10 +15,7 @@
var bulk = coll.initializeUnorderedBulkOp();
print("Populate the collection with random data");
for (var i = 0; i < numDocs; i++) {
- var doc = {
- "_id": i,
- "field0": Random.rand()
- };
+ var doc = {"_id": i, "field0": Random.rand()};
bulk.insert(doc);
}
@@ -28,9 +25,7 @@
// field being actively indexed in the background
bulk = coll.initializeUnorderedBulkOp();
for (i = 0; i < numDocs; i++) {
- var criteria = {
- "_id": 1000
- };
+ var criteria = {"_id": 1000};
var mod = {};
if (Random.rand() < .8) {