summaryrefslogtreecommitdiff
path: root/src/mongo/executor/connection_pool_tl.cpp
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2019-05-31 13:19:47 -0400
committerBen Caimano <ben.caimano@10gen.com>2019-05-31 15:38:26 -0400
commit3c408fe353aef12c427eced6bd2129be4435eb6c (patch)
treecea9d3670bdd8d6b4b7cfbfd17510edbfc65bd57 /src/mongo/executor/connection_pool_tl.cpp
parentb8c122532766ca47666945f7d8b7b1e19332f03f (diff)
downloadmongo-3c408fe353aef12c427eced6bd2129be4435eb6c.tar.gz
SERVER-41430 Always spawn connections out of line
Diffstat (limited to 'src/mongo/executor/connection_pool_tl.cpp')
-rw-r--r--src/mongo/executor/connection_pool_tl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/executor/connection_pool_tl.cpp b/src/mongo/executor/connection_pool_tl.cpp
index 55ea5a161c1..a7ab984b600 100644
--- a/src/mongo/executor/connection_pool_tl.cpp
+++ b/src/mongo/executor/connection_pool_tl.cpp
@@ -232,6 +232,7 @@ void TLConnection::setup(Milliseconds timeout, SetupCallback cb) {
auto isMasterHook = std::make_shared<TLConnectionSetupHook>(_onConnectHook);
AsyncDBClient::connect(_peer, _sslMode, _serviceContext, _reactor, timeout)
+ .thenRunOn(_reactor)
.onError([](StatusWith<AsyncDBClient::Handle> swc) -> StatusWith<AsyncDBClient::Handle> {
return Status(ErrorCodes::HostUnreachable, swc.getStatus().reason());
})