diff options
Diffstat (limited to 'src/mongo/executor/network_interface_asio_operation.cpp')
-rw-r--r-- | src/mongo/executor/network_interface_asio_operation.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/executor/network_interface_asio_operation.cpp b/src/mongo/executor/network_interface_asio_operation.cpp index b300080ce76..87d4b740ec6 100644 --- a/src/mongo/executor/network_interface_asio_operation.cpp +++ b/src/mongo/executor/network_interface_asio_operation.cpp @@ -198,13 +198,6 @@ void NetworkInterfaceASIO::AsyncOp::finish(ResponseStatus&& rs) { LOG(2) << "Request " << _request.id << " finished with response: " << redact(rs.isOK() ? rs.data.toString() : rs.status.toString()); - // Our own internally generated time outs have a different error code to allow us to retry - // internal timeouts. But the outside world (and our tests) still expect the one true - // ExceededTimeLimit, so we convert back here so they get what they expect. - if (!rs.isOK() && rs.status.code() == ErrorCodes::NetworkInterfaceExceededTimeLimit) { - rs.status = Status(ErrorCodes::ExceededTimeLimit, rs.status.reason()); - } - // Calling the completion handler may invalidate state in this op, so do it last. _onFinish(rs); } |