diff options
| author | Jonathan Reams <jbreams@mongodb.com> | 2017-06-27 14:04:53 -0400 |
|---|---|---|
| committer | Jonathan Reams <jbreams@mongodb.com> | 2017-07-14 16:19:40 -0400 |
| commit | 1622c6b7a7971ea7fbdd4b3d5b10455e48e5cf69 (patch) | |
| tree | 4cad8d64f1ace9bc13aea786b460872b1ce466c3 /src/mongo/s/server.cpp | |
| parent | e0b06a9da3c0c6071f4e636f3c3ba3e8851c5db0 (diff) | |
| download | mongo-1622c6b7a7971ea7fbdd4b3d5b10455e48e5cf69.tar.gz | |
SERVER-29402 Implement ServiceExecutor and fixed-size test executor
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(); |
