summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/indexupdatetests.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-02-18 21:57:01 -0500
committerEliot Horowitz <eliot@10gen.com>2014-02-18 23:11:00 -0500
commit6718e33f5ecd0de4a8550afaf789c2fc416b6eee (patch)
tree64385a447c8792b16f6c190dd629afebd1ff0f4b /src/mongo/dbtests/indexupdatetests.cpp
parent9a9baaaf78677b939b8267d6e9266ec88c345b6b (diff)
downloadmongo-6718e33f5ecd0de4a8550afaf789c2fc416b6eee.tar.gz
SERVER:8412: re-write repairDatabase to use new constructs
to make clean, also fix Database::createColection
Diffstat (limited to 'src/mongo/dbtests/indexupdatetests.cpp')
-rw-r--r--src/mongo/dbtests/indexupdatetests.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mongo/dbtests/indexupdatetests.cpp b/src/mongo/dbtests/indexupdatetests.cpp
index 3e2da8aa01a..706b2e482ea 100644
--- a/src/mongo/dbtests/indexupdatetests.cpp
+++ b/src/mongo/dbtests/indexupdatetests.cpp
@@ -372,8 +372,10 @@ namespace IndexUpdateTests {
// Recreate the collection as capped, without an _id index.
Database* db = _ctx.ctx().db();
db->dropCollection( _ns );
- const BSONObj collOptions = BSON( "size" << (10 * 1024) );
- Collection* coll = db->createCollection( _ns, true, &collOptions );
+ CollectionOptions options;
+ options.capped = true;
+ options.cappedSize = 10 * 1024;
+ Collection* coll = db->createCollection( _ns, options );
coll->getIndexCatalog()->dropAllIndexes( true );
// Insert some documents.
int32_t nDocs = 1000;
@@ -402,8 +404,10 @@ namespace IndexUpdateTests {
// Recreate the collection as capped, without an _id index.
Database* db = _ctx.ctx().db();
db->dropCollection( _ns );
- const BSONObj collOptions = BSON( "size" << (10 * 1024) );
- Collection* coll = db->createCollection( _ns, true, &collOptions );
+ CollectionOptions options;
+ options.capped = true;
+ options.cappedSize = 10 * 1024;
+ Collection* coll = db->createCollection( _ns, options );
coll->getIndexCatalog()->dropAllIndexes( true );
// Insert some documents.
int32_t nDocs = 1000;