diff options
Diffstat (limited to 'src/mongo/transport/transport_layer_legacy.h')
-rw-r--r-- | src/mongo/transport/transport_layer_legacy.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/transport/transport_layer_legacy.h b/src/mongo/transport/transport_layer_legacy.h index dab651bb86e..6ef7b73a7c1 100644 --- a/src/mongo/transport/transport_layer_legacy.h +++ b/src/mongo/transport/transport_layer_legacy.h @@ -28,6 +28,8 @@ #pragma once +#include <vector> + #include "mongo/stdx/list.h" #include "mongo/stdx/memory.h" #include "mongo/stdx/mutex.h" @@ -101,6 +103,8 @@ private: using NewConnectionCb = stdx::function<void(std::unique_ptr<AbstractMessagingPort>)>; using WorkHandle = stdx::function<Status(AbstractMessagingPort*)>; + std::vector<LegacySessionHandle> lockAllSessions(const stdx::unique_lock<stdx::mutex>&) const; + /** * Connection object, to associate Sessions with AbstractMessagingPorts. */ @@ -127,8 +131,8 @@ private: public: ~LegacySession(); - static std::shared_ptr<LegacySession> create(std::unique_ptr<AbstractMessagingPort> amp, - TransportLayerLegacy* tl); + static LegacySessionHandle create(std::unique_ptr<AbstractMessagingPort> amp, + TransportLayerLegacy* tl); TransportLayer* getTransportLayer() const override { return _tl; |