summaryrefslogtreecommitdiff
path: root/src/mongo/s/service_entry_point_mongos.cpp
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2016-08-31 17:35:11 -0400
committersamantharitter <samantha.ritter@10gen.com>2016-09-12 17:19:25 -0400
commitd614dda4286e31680f2773f511eeda997ae66e38 (patch)
tree3a8710baf2f1c0caf0d567b91237a6b185fe9e4d /src/mongo/s/service_entry_point_mongos.cpp
parent710eea36a153c9d3e0cfe820b39bd99137520aea (diff)
downloadmongo-d614dda4286e31680f2773f511eeda997ae66e38.tar.gz
SERVER-25918 Operations on closed sessions should return a TransportSessionClosed status
Diffstat (limited to 'src/mongo/s/service_entry_point_mongos.cpp')
-rw-r--r--src/mongo/s/service_entry_point_mongos.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/s/service_entry_point_mongos.cpp b/src/mongo/s/service_entry_point_mongos.cpp
index d7d40e4beee..427152c8adb 100644
--- a/src/mongo/s/service_entry_point_mongos.cpp
+++ b/src/mongo/s/service_entry_point_mongos.cpp
@@ -97,6 +97,11 @@ void ServiceEntryPointMongos::_sessionLoop(Session* session) {
break;
}
+ // Our session may have been closed internally.
+ if (status == TransportLayer::TicketSessionClosedStatus) {
+ break;
+ }
+
uassertStatusOK(status);
}