diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2017-07-14 16:36:25 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-03-12 15:46:23 -0400 |
commit | ba7e3424c4c3dadd3bc8cc16214e2d12e93043e9 (patch) | |
tree | 7f51d1e0264afd9d59ba6b1fa527781a54b19df5 | |
parent | 46fc1d293fe782cce144060fc895d39efe77d6bf (diff) | |
download | mongo-ba7e3424c4c3dadd3bc8cc16214e2d12e93043e9.tar.gz |
SERVER-30158 FTDC starts too early in mongos
(cherry picked from commit 66d65846c739326663428aab92eda5c4a8fbad47)
-rw-r--r-- | src/mongo/s/server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp index 89de456c626..0b8a9a17651 100644 --- a/src/mongo/s/server.cpp +++ b/src/mongo/s/server.cpp @@ -246,8 +246,6 @@ static ExitCode runMongosServer() { getGlobalServiceContext()->setServiceEntryPoint(std::move(sep)); - startMongoSFTDC(); - auto transportLayer = stdx::make_unique<transport::TransportLayerLegacy>(opts, sepPtr); auto res = transportLayer->setup(); if (!res.isOK()) { @@ -299,6 +297,8 @@ static ExitCode runMongosServer() { web.detach(); } + startMongoSFTDC(); + Status status = getGlobalAuthorizationManager()->initialize(NULL); if (!status.isOK()) { error() << "Initializing authorization data failed: " << status; |