diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2019-05-31 13:19:47 -0400 |
---|---|---|
committer | Ben Caimano <ben.caimano@10gen.com> | 2019-05-31 15:38:26 -0400 |
commit | 3c408fe353aef12c427eced6bd2129be4435eb6c (patch) | |
tree | cea9d3670bdd8d6b4b7cfbfd17510edbfc65bd57 /src/mongo/executor/connection_pool_tl.cpp | |
parent | b8c122532766ca47666945f7d8b7b1e19332f03f (diff) | |
download | mongo-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.cpp | 1 |
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()); }) |