mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
12 lines
264 B
JavaScript
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();
|
|
|