0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/mmap_v1/capped_server7543.js
2014-08-05 08:51:41 -04:00

12 lines
264 B
JavaScript

mydb = db.getSisterDB( "capped_server7543" );
mydb.dropDatabase();
mydb.createCollection( "foo" , { capped : true , size : 12288 } );
assert.eq( 12288, mydb.foo.stats().storageSize );
assert.eq( 1, mydb.foo.validate(true).extentCount );
mydb.dropDatabase();