summaryrefslogtreecommitdiff
path: root/src/mongo/client/async_client.cpp
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@mongodb.com>2020-01-21 22:38:52 +0000
committerevergreen <evergreen@mongodb.com>2020-01-21 22:38:52 +0000
commit71ae1d4bf4eb92b5e46922efdebb96f99081f5cd (patch)
tree6f13c73e80dfbac90bc39c0708f913e8636a1e67 /src/mongo/client/async_client.cpp
parent30b8a9ee82306012a1a344c684932df1b15f1be8 (diff)
downloadmongo-71ae1d4bf4eb92b5e46922efdebb96f99081f5cd.tar.gz
SERVER-43606 Enforce connection reuse in response to remote interruption
Diffstat (limited to 'src/mongo/client/async_client.cpp')
-rw-r--r--src/mongo/client/async_client.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mongo/client/async_client.cpp b/src/mongo/client/async_client.cpp
index e34fe4c7bec..a6748f5ffe6 100644
--- a/src/mongo/client/async_client.cpp
+++ b/src/mongo/client/async_client.cpp
@@ -245,10 +245,6 @@ Future<executor::RemoteCommandResponse> AsyncDBClient::runCommandRequest(
.then([start, clkSource, this](rpc::UniqueReply response) {
auto duration = duration_cast<Milliseconds>(clkSource->now() - start);
return executor::RemoteCommandResponse(*response, duration);
- })
- .onError([start, clkSource](Status status) {
- auto duration = duration_cast<Milliseconds>(clkSource->now() - start);
- return executor::RemoteCommandResponse(status, duration);
});
}