summaryrefslogtreecommitdiff
path: root/src/mongo/db/logical_session_cache_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/logical_session_cache_impl.h')
-rw-r--r--src/mongo/db/logical_session_cache_impl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/logical_session_cache_impl.h b/src/mongo/db/logical_session_cache_impl.h
index 956b4c1dbda..445159cd4e1 100644
--- a/src/mongo/db/logical_session_cache_impl.h
+++ b/src/mongo/db/logical_session_cache_impl.h
@@ -125,6 +125,8 @@ public:
void endSessions(const LogicalSessionIdSet& sessions) override;
+ LogicalSessionCacheStats getStats() override;
+
private:
/**
* Internal methods to handle scheduling and perform refreshes for active
@@ -149,6 +151,10 @@ private:
const Minutes _refreshInterval;
const Minutes _sessionTimeout;
+ // This value is only modified under the lock, and is modified
+ // automatically by the background jobs.
+ LogicalSessionCacheStats _stats;
+
std::unique_ptr<ServiceLiason> _service;
std::shared_ptr<SessionsCollection> _sessionsColl;