diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-06-04 13:49:06 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-06-07 19:29:41 -0400 |
commit | ac88c6d4c085e72b6f0ae364b8d11dc604627efb (patch) | |
tree | 1ab2353fe282238f1bea53fb622052dbcec5567c /src/mongo/dbtests | |
parent | 61659a724e284e39a24cedc771b36c645192f398 (diff) | |
download | mongo-ac88c6d4c085e72b6f0ae364b8d11dc604627efb.tar.gz |
SERVER-40716 Refactor catalog initialization logic on startup
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r-- | src/mongo/dbtests/framework.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/dbtests/framework.cpp b/src/mongo/dbtests/framework.cpp index c39c01ddc3b..69760dd428e 100644 --- a/src/mongo/dbtests/framework.cpp +++ b/src/mongo/dbtests/framework.cpp @@ -38,6 +38,7 @@ #include "mongo/base/checked_cast.h" #include "mongo/base/status.h" #include "mongo/db/catalog/collection_catalog.h" +#include "mongo/db/catalog/collection_impl.h" #include "mongo/db/catalog/database_holder_impl.h" #include "mongo/db/client.h" #include "mongo/db/concurrency/lock_state.h" @@ -109,6 +110,7 @@ int runDbTests(int argc, char** argv) { DatabaseHolder::set(globalServiceContext, std::make_unique<DatabaseHolderImpl>()); IndexAccessMethodFactory::set(globalServiceContext, std::make_unique<IndexAccessMethodFactoryImpl>()); + Collection::Factory::set(globalServiceContext, std::make_unique<CollectionImpl::FactoryImpl>()); IndexBuildsCoordinator::set(globalServiceContext, std::make_unique<IndexBuildsCoordinatorMongod>()); auto registry = stdx::make_unique<OpObserverRegistry>(); |