diff options
Diffstat (limited to 'src/mongo/s/server.cpp')
| -rw-r--r-- | src/mongo/s/server.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp index 4558e93701a..a5c8746e759 100644 --- a/src/mongo/s/server.cpp +++ b/src/mongo/s/server.cpp @@ -353,6 +353,14 @@ static ExitCode runMongosServer() { return EXIT_NET_ERROR; } + if (auto svcExec = getGlobalServiceContext()->getServiceExecutor()) { + start = svcExec->start(); + if (!start.isOK()) { + error() << "Failed to start the service executor: " << start; + return EXIT_NET_ERROR; + } + } + getGlobalServiceContext()->notifyStartupComplete(); #if !defined(_WIN32) mongo::signalForkSuccess(); |
