diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-05-30 14:26:42 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2019-06-19 13:57:28 -0400 |
commit | a7e5069c5a5caae4d64efa9086b0c5f0766ab508 (patch) | |
tree | c66b77b050c769a640bbe75519f0ee27f23d1410 /src/mongo/embedded/embedded.cpp | |
parent | 113260628583714bea96aa79fdf70937f9edcae7 (diff) | |
download | mongo-a7e5069c5a5caae4d64efa9086b0c5f0766ab508.tar.gz |
SERVER-41398 Create IndexAccessMethodFactory
(cherry picked from commit a54a1e4edcd48ee4aa5085e9067656196f73308f)
Diffstat (limited to 'src/mongo/embedded/embedded.cpp')
-rw-r--r-- | src/mongo/embedded/embedded.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/embedded/embedded.cpp b/src/mongo/embedded/embedded.cpp index fb9f7dc4929..158885e2d8a 100644 --- a/src/mongo/embedded/embedded.cpp +++ b/src/mongo/embedded/embedded.cpp @@ -45,6 +45,7 @@ #include "mongo/db/concurrency/lock_state.h" #include "mongo/db/dbdirectclient.h" #include "mongo/db/global_settings.h" +#include "mongo/db/index/index_access_method_factory_impl.h" #include "mongo/db/kill_sessions_local.h" #include "mongo/db/logical_clock.h" #include "mongo/db/logical_session_cache_impl.h" @@ -93,7 +94,7 @@ void initWireSpec() { } -// Noop, to fulfull dependencies for other initializers +// Noop, to fulfill dependencies for other initializers. MONGO_INITIALIZER_GENERAL(ForkServer, ("EndStartupOptionHandling"), ("default")) (InitializerContext* context) { return Status::OK(); @@ -101,6 +102,7 @@ MONGO_INITIALIZER_GENERAL(ForkServer, ("EndStartupOptionHandling"), ("default")) void setUpCatalog(ServiceContext* serviceContext) { DatabaseHolder::set(serviceContext, std::make_unique<DatabaseHolderImpl>()); + IndexAccessMethodFactory::set(serviceContext, std::make_unique<IndexAccessMethodFactoryImpl>()); } // Create a minimalistic replication coordinator to provide a limited interface for users. Not |