summaryrefslogtreecommitdiff
path: root/src/mongo/tools/bridge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/tools/bridge.cpp')
-rw-r--r--src/mongo/tools/bridge.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/tools/bridge.cpp b/src/mongo/tools/bridge.cpp
index 1c2f7d46bc9..82489a61492 100644
--- a/src/mongo/tools/bridge.cpp
+++ b/src/mongo/tools/bridge.cpp
@@ -485,9 +485,6 @@ int bridgeMain(int argc, char** argv) {
setGlobalServiceContext(ServiceContext::make());
auto serviceContext = getGlobalServiceContext();
serviceContext->setServiceEntryPoint(std::make_unique<ServiceEntryPointBridge>(serviceContext));
- if (auto status = serviceContext->getServiceEntryPoint()->start(); !status.isOK()) {
- LOGV2(4907203, "Error starting service entry point", "error"_attr = status);
- }
transport::TransportLayerASIO::Options opts;
opts.ipList.emplace_back("0.0.0.0");
@@ -501,6 +498,10 @@ int bridgeMain(int argc, char** argv) {
return EXIT_NET_ERROR;
}
+ if (auto status = serviceContext->getServiceEntryPoint()->start(); !status.isOK()) {
+ LOGV2(4907203, "Error starting service entry point", "error"_attr = status);
+ }
+
if (auto status = tl->start(); !status.isOK()) {
LOGV2(22923, "Error starting transport layer", "error"_attr = status);
return EXIT_NET_ERROR;