diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-02-18 21:57:01 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-02-18 23:11:00 -0500 |
commit | 6718e33f5ecd0de4a8550afaf789c2fc416b6eee (patch) | |
tree | 64385a447c8792b16f6c190dd629afebd1ff0f4b /src/mongo/dbtests/indexupdatetests.cpp | |
parent | 9a9baaaf78677b939b8267d6e9266ec88c345b6b (diff) | |
download | mongo-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.cpp | 12 |
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; |