summaryrefslogtreecommitdiff
path: root/src/mongo/db/sessions_collection.h
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2017-06-08 18:18:28 -0400
committersamantharitter <samantha.ritter@10gen.com>2017-06-09 11:08:57 -0400
commitfb22390ab04a55fcbd91eba673dde310cb938351 (patch)
tree7754063c492174dbd45084c61b228d59b704c02d /src/mongo/db/sessions_collection.h
parentff412300b3688dad4938bb381ec3aba12a81024b (diff)
downloadmongo-fb22390ab04a55fcbd91eba673dde310cb938351.tar.gz
SERVER-28346 Add more unit tests for the logical session cache
Diffstat (limited to 'src/mongo/db/sessions_collection.h')
-rw-r--r--src/mongo/db/sessions_collection.h7
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