summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod/explain2.js
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:17:50 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:18:14 -0500
commit4ae691e8edc87d0e3cfb633bb91c328426be007b (patch)
tree52079a593f54382ca13a2e741633eab1b6271893 /jstests/noPassthroughWithMongod/explain2.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/noPassthroughWithMongod/explain2.js')
-rw-r--r--jstests/noPassthroughWithMongod/explain2.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/jstests/noPassthroughWithMongod/explain2.js b/jstests/noPassthroughWithMongod/explain2.js
index 032f0fa8de8..81b8951488f 100644
--- a/jstests/noPassthroughWithMongod/explain2.js
+++ b/jstests/noPassthroughWithMongod/explain2.js
@@ -2,17 +2,17 @@
collName = 'jstests_slowNightly_explain2';
-t = db[ collName ];
+t = db[collName];
t.drop();
-db.createCollection( collName, {capped:true,size:100000} );
-t = db[ collName ];
-t.ensureIndex( {x:1} );
+db.createCollection(collName, {capped: true, size: 100000});
+t = db[collName];
+t.ensureIndex({x: 1});
-a = startParallelShell( 'for( i = 0; i < 50000; ++i ) { db.' + collName + '.insert( {x:i,y:1} ); }' );
+a = startParallelShell('for( i = 0; i < 50000; ++i ) { db.' + collName + '.insert( {x:i,y:1} ); }');
-for( i = 0; i < 800; ++i ) {
- t.find( {x:{$gt:-1},y:1} ).sort({x:-1}).explain();
+for (i = 0; i < 800; ++i) {
+ t.find({x: {$gt: -1}, y: 1}).sort({x: -1}).explain();
}
a(); \ No newline at end of file