summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/dbtests.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2018-04-24 18:44:21 -0400
committerAndy Schwerin <schwerin@mongodb.com>2018-05-02 17:10:28 -0400
commit970ace98679d499f8821c8775dee875d3070d79f (patch)
treee0d71af365887a0d16f0521c68d02ad908ed6000 /src/mongo/dbtests/dbtests.cpp
parent8ee6a9c1993acf7981d4d7a0ac8ba6f808c23b60 (diff)
downloadmongo-970ace98679d499f8821c8775dee875d3070d79f.tar.gz
SERVER-34794 Construct the global ServiceContext inside a MONGO_INITIALIZER
Diffstat (limited to 'src/mongo/dbtests/dbtests.cpp')
-rw-r--r--src/mongo/dbtests/dbtests.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/dbtests/dbtests.cpp b/src/mongo/dbtests/dbtests.cpp
index 53ecaaa74e9..91d32f7e032 100644
--- a/src/mongo/dbtests/dbtests.cpp
+++ b/src/mongo/dbtests/dbtests.cpp
@@ -132,8 +132,7 @@ int dbtestsMain(int argc, char** argv, char** envp) {
::mongo::setupSynchronousSignalHandlers();
mongo::dbtests::initWireSpec();
- setGlobalServiceContext(createServiceContext());
- mongo::runGlobalInitializersOrDie(argc, argv, envp, getGlobalServiceContext());
+ mongo::runGlobalInitializersOrDie(argc, argv, envp);
serverGlobalParams.featureCompatibility.setVersion(
ServerGlobalParams::FeatureCompatibility::Version::kFullyUpgradedTo40);
repl::ReplSettings replSettings;