diff options
author | Antonin Kral <a.kral@bobek.cz> | 2011-03-17 00:05:43 +0100 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2011-03-17 00:05:43 +0100 |
commit | 582fc32574a3b158c81e49cb00e6ae59205e66ba (patch) | |
tree | ac64a3243e0d2121709f685695247052858115c8 /jstests/slowNightly/newcollection2.js | |
parent | 2761bffa96595ac1698d86bbc2e95ebb0d4d6e93 (diff) | |
download | mongodb-582fc32574a3b158c81e49cb00e6ae59205e66ba.tar.gz |
Imported Upstream version 1.8.0
Diffstat (limited to 'jstests/slowNightly/newcollection2.js')
-rw-r--r-- | jstests/slowNightly/newcollection2.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/jstests/slowNightly/newcollection2.js b/jstests/slowNightly/newcollection2.js new file mode 100644 index 0000000..6bf2495 --- /dev/null +++ b/jstests/slowNightly/newcollection2.js @@ -0,0 +1,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 ); |