summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context_d_test_fixture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/service_context_d_test_fixture.cpp')
-rw-r--r--src/mongo/db/service_context_d_test_fixture.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/service_context_d_test_fixture.cpp b/src/mongo/db/service_context_d_test_fixture.cpp
index a6d84a4cd40..9eda18d4812 100644
--- a/src/mongo/db/service_context_d_test_fixture.cpp
+++ b/src/mongo/db/service_context_d_test_fixture.cpp
@@ -124,6 +124,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());