diff options
author | James Wahlin <james@mongodb.com> | 2017-06-08 09:37:29 -0400 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2017-06-08 09:37:29 -0400 |
commit | 12e54a966bde02389224b78db6500978ca68a54e (patch) | |
tree | 815944562c042f09f9664c3e32ab00de12370215 /src/mongo/db/sessions_collection.h | |
parent | 6f8b26a49dd6fb150689ecd970f47a48e15bd28b (diff) | |
download | mongo-12e54a966bde02389224b78db6500978ca68a54e.tar.gz |
Revert "SERVER-28346 Add more unit tests for the logical session cache"
This reverts commit 4c3337abe512a37c8e4cb22e16eafcd04bc5bd3a.
Diffstat (limited to 'src/mongo/db/sessions_collection.h')
-rw-r--r-- | src/mongo/db/sessions_collection.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/sessions_collection.h b/src/mongo/db/sessions_collection.h index ec59f28c597..8e65828033d 100644 --- a/src/mongo/db/sessions_collection.h +++ b/src/mongo/db/sessions_collection.h @@ -28,7 +28,6 @@ #pragma once -#include "mongo/db/logical_session_id.h" #include "mongo/db/logical_session_record.h" namespace mongo { @@ -41,6 +40,8 @@ namespace mongo { */ class SessionsCollection { public: + using SessionList = std::list<LogicalSessionId>; + virtual ~SessionsCollection(); /** @@ -65,7 +66,7 @@ public: * Returns a list of sessions for which no authoritative record was found, * and hence were not refreshed. */ - virtual LogicalSessionIdSet refreshSessions(LogicalSessionIdSet sessions) = 0; + virtual SessionList refreshSessions(SessionList sessions) = 0; /** * Removes the authoritative records for the specified sessions. @@ -73,7 +74,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(LogicalSessionIdSet sessions) = 0; + virtual void removeRecords(SessionList sessions) = 0; }; } // namespace mongo |