summaryrefslogtreecommitdiff
path: root/jstests/slowNightly/newcollection2.js
blob: 6bf24952c36578f66c2e0eacdc2d1721044a1a52 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Alocate collection forcing just a small size remainder in 2nd extent

port = allocatePorts( 1 )[ 0 ]
var baseName = "jstests_disk_newcollection2";
var m = startMongod( "--noprealloc", "--smallfiles", "--port", port, "--dbpath", "/data/db/" + baseName );
db = m.getDB( "test" );

db.createCollection( baseName, {size:0x1FFC0000-0x10-8192} );
var v = db[ baseName ].validate();
printjson( v );
assert( v.valid );