From aa9f6a202e0709adf14046cb27504864adaf732b Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Wed, 8 May 2019 18:14:07 -0400 Subject: SERVER-37837 Examine and reap sessions from the SessionsCatalog This change makes the logical sessions cache query and reap sessions, which are possibly only in-memory on the SessionsCatalog. --- src/mongo/db/sessions_collection.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mongo/db/sessions_collection.h') diff --git a/src/mongo/db/sessions_collection.h b/src/mongo/db/sessions_collection.h index 64e78c8a476..91ae86e7c9f 100644 --- a/src/mongo/db/sessions_collection.h +++ b/src/mongo/db/sessions_collection.h @@ -34,8 +34,6 @@ namespace mongo { -class BSONArrayBuilder; -class BSONObjBuilder; class DBClientBase; class OperationContext; @@ -46,7 +44,6 @@ class OperationContext; * implement their own classes that fulfill this interface. */ class SessionsCollection { - public: static constexpr StringData kSessionsTTLIndex = "lsidTTLIndex"_sd; @@ -98,6 +95,8 @@ public: static BSONObj generateCollModCmd(); protected: + SessionsCollection(); + /** * Makes a send function for the given client. */ -- cgit v1.2.1