diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2017-08-15 11:25:22 -0400 |
---|---|---|
committer | Henrik Edin <henrik.edin@mongodb.com> | 2017-09-22 16:38:54 -0400 |
commit | 6732fbb1fb749e9f22f0ed4633e24515f842dafc (patch) | |
tree | 46ecca0cb2d251ee428f51fcb32c975a184bce9f /src/mongo/s/server.cpp | |
parent | ab7ceed2108a7d19518490929b03fa6f4a13257c (diff) | |
download | mongo-6732fbb1fb749e9f22f0ed4633e24515f842dafc.tar.gz |
SERVER-30135 Added a synchronous executor to make the code path between the two modes similar while still allowing customization in the execution. Should fix some perf regressions that came with unifying the service state machine.
Diffstat (limited to 'src/mongo/s/server.cpp')
-rw-r--r-- | src/mongo/s/server.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp index 8c51e2dfb77..4af8f9a1d8d 100644 --- a/src/mongo/s/server.cpp +++ b/src/mongo/s/server.cpp @@ -412,12 +412,10 @@ 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; - } + start = getGlobalServiceContext()->getServiceExecutor()->start(); + if (!start.isOK()) { + error() << "Failed to start the service executor: " << start; + return EXIT_NET_ERROR; } getGlobalServiceContext()->notifyStartupComplete(); |