summaryrefslogtreecommitdiff
path: root/jstests/capped_server7543.js
blob: 514cd7964b29957a9df58e7608520fb06f886a4c (plain)
1
2
3
4
5
6
7
8
9
10
11

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();