summaryrefslogtreecommitdiff
path: root/jstests/disk/quota3.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/disk/quota3.js')
-rw-r--r--jstests/disk/quota3.js27
1 files changed, 13 insertions, 14 deletions
diff --git a/jstests/disk/quota3.js b/jstests/disk/quota3.js
index 43227d21bfc..0332667e53e 100644
--- a/jstests/disk/quota3.js
+++ b/jstests/disk/quota3.js
@@ -1,21 +1,20 @@
// Test for quotaFiles being ignored allocating a large collection - SERVER-3511.
-if ( 0 ) { // SERVER-3511
+if (0) { // SERVER-3511
-baseName = "jstests_disk_quota3";
-dbpath = MongoRunner.dataPath + baseName;
+ baseName = "jstests_disk_quota3";
+ dbpath = MongoRunner.dataPath + baseName;
-var m = MongoRunner.runMongod({dbpath: dbpath, quotaFiles: 3, smallfiles: ""});
-db = m.getDB( baseName );
+ var m = MongoRunner.runMongod({dbpath: dbpath, quotaFiles: 3, smallfiles: ""});
+ db = m.getDB(baseName);
-db.createCollection( baseName, {size:128*1024*1024} );
-assert( db.getLastError() );
-
-dotFourDataFile = dbpath + "/" + baseName + ".4";
-files = listFiles( dbpath );
-for( i in files ) {
- // .3 file may be preallocated but not .4
- assert.neq( dotFourDataFile, files[ i ].name );
-}
+ db.createCollection(baseName, {size: 128 * 1024 * 1024});
+ assert(db.getLastError());
+ dotFourDataFile = dbpath + "/" + baseName + ".4";
+ files = listFiles(dbpath);
+ for (i in files) {
+ // .3 file may be preallocated but not .4
+ assert.neq(dotFourDataFile, files[i].name);
+ }
} \ No newline at end of file