diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2020-04-06 13:52:22 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-16 16:26:03 +0000 |
commit | 5a3b48b31445888d06b593055ffcd13fa0d701b4 (patch) | |
tree | a428d77e0eb46d29b440984ed1fef1b6bb1e3670 /src/mongo/transport/session_asio.h | |
parent | 9d9092639bd90dcd27d06c0ac31ff043b721694a (diff) | |
download | mongo-5a3b48b31445888d06b593055ffcd13fa0d701b4.tar.gz |
SERVER-47166 Explicitly break Baton Promises outside of locks
Diffstat (limited to 'src/mongo/transport/session_asio.h')
-rw-r--r-- | src/mongo/transport/session_asio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/transport/session_asio.h b/src/mongo/transport/session_asio.h index e4a40043c0d..08042c94fe5 100644 --- a/src/mongo/transport/session_asio.h +++ b/src/mongo/transport/session_asio.h @@ -510,7 +510,7 @@ private: networkingBaton && networkingBaton->canWait()) { return networkingBaton->addSession(*this, NetworkingBaton::Type::In) .onError([](Status error) { - if (ErrorCodes::isCancelationError(error)) { + if (ErrorCodes::isShutdownError(error)) { // If the baton has detached, it will cancel its polling. We catch that // error here and return Status::OK so that we invoke // opportunisticRead() again and switch to asio::async_read() below. |