summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWaley Chen <waleycz@gmail.com>2016-03-23 09:04:21 -0400
committerWaley Chen <waleycz@gmail.com>2016-03-23 09:04:21 -0400
commite75417bf2aabc8961d32d07a4141ba974708c697 (patch)
treea0a9a230e97fb7addc417922dc3167ba606f3572 /src
parent619d0066a6e4d5a9684de8f0313c80a8c5c43968 (diff)
downloadmongo-e75417bf2aabc8961d32d07a4141ba974708c697.tar.gz
SERVER-23279 network_interface_asio_test::getNumCanceledOps() unexpected value
Diffstat (limited to 'src')
-rw-r--r--src/mongo/executor/network_interface_asio_command.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/executor/network_interface_asio_command.cpp b/src/mongo/executor/network_interface_asio_command.cpp
index b3e900478a5..db7ba556d26 100644
--- a/src/mongo/executor/network_interface_asio_command.cpp
+++ b/src/mongo/executor/network_interface_asio_command.cpp
@@ -305,8 +305,6 @@ void NetworkInterfaceASIO::_completeOperation(AsyncOp* op, const ResponseStatus&
_numSucceededOps.fetchAndAdd(1);
}
- op->finish(resp);
-
std::unique_ptr<AsyncOp> ownedOp;
{
@@ -321,6 +319,8 @@ void NetworkInterfaceASIO::_completeOperation(AsyncOp* op, const ResponseStatus&
_inProgress.erase(iter);
}
+ op->finish(resp);
+
MONGO_ASIO_INVARIANT(static_cast<bool>(ownedOp), "Invalid AsyncOp", op);
auto conn = std::move(op->_connectionPoolHandle);