diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2018-04-24 18:44:21 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2018-05-02 17:10:28 -0400 |
commit | 970ace98679d499f8821c8775dee875d3070d79f (patch) | |
tree | e0d71af365887a0d16f0521c68d02ad908ed6000 /src/mongo/dbtests/dbtests.cpp | |
parent | 8ee6a9c1993acf7981d4d7a0ac8ba6f808c23b60 (diff) | |
download | mongo-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.cpp | 3 |
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; |