diff options
Diffstat (limited to 'src/mongo/db/service_context_d_test_fixture.cpp')
| -rw-r--r-- | src/mongo/db/service_context_d_test_fixture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/service_context_d_test_fixture.cpp b/src/mongo/db/service_context_d_test_fixture.cpp index 3a96fa15dfb..8903b5e1aa0 100644 --- a/src/mongo/db/service_context_d_test_fixture.cpp +++ b/src/mongo/db/service_context_d_test_fixture.cpp @@ -42,7 +42,6 @@ #include "mongo/db/catalog/database_holder_impl.h" #include "mongo/db/concurrency/d_concurrency.h" #include "mongo/db/global_settings.h" -#include "mongo/db/index/index_access_method_factory_impl.h" #include "mongo/db/index_builds_coordinator_mongod.h" #include "mongo/db/op_observer_registry.h" #include "mongo/db/repl/repl_settings.h" @@ -118,6 +117,8 @@ ServiceContextMongoDTest::ServiceContextMongoDTest(Options options) storageGlobalParams.dbpath = _tempDir.path(); + storageGlobalParams.ephemeral = options._ephemeral; + // Since unit tests start in their own directories, by default skip lock file and metadata file // for faster startup. auto opCtx = serviceContext->makeOperationContext(getClient()); @@ -125,7 +126,6 @@ ServiceContextMongoDTest::ServiceContextMongoDTest(Options options) StorageControl::startStorageControls(serviceContext, true /*forTestOnly*/); DatabaseHolder::set(serviceContext, std::make_unique<DatabaseHolderImpl>()); - IndexAccessMethodFactory::set(serviceContext, std::make_unique<IndexAccessMethodFactoryImpl>()); Collection::Factory::set(serviceContext, std::make_unique<CollectionImpl::FactoryImpl>()); IndexBuildsCoordinator::set(serviceContext, std::make_unique<IndexBuildsCoordinatorMongod>()); CollectionShardingStateFactory::set( |
