summaryrefslogtreecommitdiff
path: root/jstests/mmap_v1/indexh.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/mmap_v1/indexh.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/mmap_v1/indexh.js')
-rw-r--r--jstests/mmap_v1/indexh.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/jstests/mmap_v1/indexh.js b/jstests/mmap_v1/indexh.js
index ac2a93ec62b..50d3e40e11e 100644
--- a/jstests/mmap_v1/indexh.js
+++ b/jstests/mmap_v1/indexh.js
@@ -2,40 +2,40 @@
t = db.jstests_indexh;
-function debug( t ) {
- print( t );
+function debug(t) {
+ print(t);
}
function extraDebug() {
-// printjson( db.stats() );
-// db.printCollectionStats();
+ // printjson( db.stats() );
+ // db.printCollectionStats();
}
// index extent freeing
t.drop();
-t.save( {} );
+t.save({});
var s1 = db.stats().dataSize;
-debug( "s1: " + s1 );
+debug("s1: " + s1);
extraDebug();
-t.ensureIndex( {a:1} );
+t.ensureIndex({a: 1});
var s2 = db.stats().dataSize;
-debug( "s2: " + s2 );
-assert.automsg( "s1 < s2" );
-t.dropIndex( {a:1} );
+debug("s2: " + s2);
+assert.automsg("s1 < s2");
+t.dropIndex({a: 1});
var s3 = db.stats().dataSize;
-debug( "s3: " + s3 );
+debug("s3: " + s3);
extraDebug();
-assert.eq.automsg( "s1", "s3" );
+assert.eq.automsg("s1", "s3");
// index node freeing
t.drop();
-t.ensureIndex( {a:1} );
-for( i = 'a'; i.length < 500; i += 'a' ) {
- t.save( {a:i} );
+t.ensureIndex({a: 1});
+for (i = 'a'; i.length < 500; i += 'a') {
+ t.save({a: i});
}
var s4 = db.stats().indexSize;
-debug( "s4: " + s4 );
-t.remove( {} );
+debug("s4: " + s4);
+t.remove({});
var s5 = db.stats().indexSize;
-debug( "s5: " + s5 );
-assert.automsg( "s5 < s4" ); \ No newline at end of file
+debug("s5: " + s5);
+assert.automsg("s5 < s4"); \ No newline at end of file