diff options
Diffstat (limited to 'src/mongo/db/session_catalog_mongod.h')
-rw-r--r-- | src/mongo/db/session_catalog_mongod.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/db/session_catalog_mongod.h b/src/mongo/db/session_catalog_mongod.h index e43c2ae84c9..e1eb6d8b4fc 100644 --- a/src/mongo/db/session_catalog_mongod.h +++ b/src/mongo/db/session_catalog_mongod.h @@ -33,6 +33,8 @@ namespace mongo { +class SessionsCollection; + class MongoDSessionCatalog { public: /** @@ -62,6 +64,14 @@ public: */ static void invalidateSessions(OperationContext* opCtx, boost::optional<BSONObj> singleSessionDoc); + + /** + * Locates session entries from the in-memory catalog and in 'config.transactions' which have + * not been referenced before 'possiblyExpired' and deletes them. + */ + static int reapSessionsOlderThan(OperationContext* OperationContext, + SessionsCollection& sessionsCollection, + Date_t possiblyExpired); }; /** |