diff options
Diffstat (limited to 'src/mongo/db/sessions_collection.h')
-rw-r--r-- | src/mongo/db/sessions_collection.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/sessions_collection.h b/src/mongo/db/sessions_collection.h index 8e65828033d..ec59f28c597 100644 --- a/src/mongo/db/sessions_collection.h +++ b/src/mongo/db/sessions_collection.h @@ -28,6 +28,7 @@ #pragma once +#include "mongo/db/logical_session_id.h" #include "mongo/db/logical_session_record.h" namespace mongo { @@ -40,8 +41,6 @@ namespace mongo { */ class SessionsCollection { public: - using SessionList = std::list<LogicalSessionId>; - virtual ~SessionsCollection(); /** @@ -66,7 +65,7 @@ public: * Returns a list of sessions for which no authoritative record was found, * and hence were not refreshed. */ - virtual SessionList refreshSessions(SessionList sessions) = 0; + virtual LogicalSessionIdSet refreshSessions(LogicalSessionIdSet sessions) = 0; /** * Removes the authoritative records for the specified sessions. @@ -74,7 +73,7 @@ public: * Implementations should perform authentication checks to ensure that * session records may only be removed if their owner is logged in. */ - virtual void removeRecords(SessionList sessions) = 0; + virtual void removeRecords(LogicalSessionIdSet sessions) = 0; }; } // namespace mongo |