diff options
author | George Wangensteen <george.wangensteen@mongodb.com> | 2021-10-13 19:38:12 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-13 20:19:56 +0000 |
commit | b429d5dda98bbe18ab0851ffd1729d3b57fc8a4e (patch) | |
tree | 9bfc2b28acfa5ae9e33863ccb2e1922f3faea038 /src/mongo/transport/service_entry_point.h | |
parent | d302f66d4ccd9bf2478518cacce5863dcc2f0c12 (diff) | |
download | mongo-b429d5dda98bbe18ab0851ffd1729d3b57fc8a4e.tar.gz |
SERVER-58503 Kill open cursors for a connection when a load balanced connection on mongos is closed
Diffstat (limited to 'src/mongo/transport/service_entry_point.h')
-rw-r--r-- | src/mongo/transport/service_entry_point.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/transport/service_entry_point.h b/src/mongo/transport/service_entry_point.h index 3e8d279b7b9..44786921474 100644 --- a/src/mongo/transport/service_entry_point.h +++ b/src/mongo/transport/service_entry_point.h @@ -32,6 +32,7 @@ #include <limits> #include "mongo/bson/bsonobjbuilder.h" +#include "mongo/db/client.h" #include "mongo/db/dbmessage.h" #include "mongo/transport/session.h" #include "mongo/util/future.h" @@ -102,6 +103,13 @@ public: */ virtual void onEndSession(const transport::SessionHandle&) {} + /** + * Optional handler which is invoked after a client disconnect. A client disconnect occurs when + * the connection between the mongo process and client is closed for any reason, and is defined + * by the destruction and cleanup of the ServiceStateMachine that manages the client. + */ + virtual void onClientDisconnect(Client* client) {} + protected: ServiceEntryPoint() = default; }; |