From ba7e3424c4c3dadd3bc8cc16214e2d12e93043e9 Mon Sep 17 00:00:00 2001 From: Mark Benvenuto Date: Fri, 14 Jul 2017 16:36:25 -0400 Subject: SERVER-30158 FTDC starts too early in mongos (cherry picked from commit 66d65846c739326663428aab92eda5c4a8fbad47) --- src/mongo/s/server.cpp | 4 ++-- 1 file 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(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; -- cgit v1.2.1