summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context.h
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2017-06-16 08:33:15 -0400
committersamantharitter <samantha.ritter@10gen.com>2017-06-16 09:43:53 -0400
commit12014e33b8de9fd9daa6da37b478066c5486857f (patch)
treed1e3e1153965923107d1d4638fa3c9ae48a725f8 /src/mongo/db/service_context.h
parentb9739a9b4bf02790d427a8e4910629f8c378c5fb (diff)
downloadmongo-12014e33b8de9fd9daa6da37b478066c5486857f.tar.gz
SERVER-29475 Install the logical session cache
Diffstat (limited to 'src/mongo/db/service_context.h')
-rw-r--r--src/mongo/db/service_context.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mongo/db/service_context.h b/src/mongo/db/service_context.h
index 720f03f3826..97a0193e2c5 100644
--- a/src/mongo/db/service_context.h
+++ b/src/mongo/db/service_context.h
@@ -33,6 +33,7 @@
#include <vector>
#include "mongo/base/disallow_copying.h"
+#include "mongo/db/logical_session_cache.h"
#include "mongo/db/logical_session_id.h"
#include "mongo/db/storage/storage_engine.h"
#include "mongo/platform/atomic_word.h"
@@ -332,6 +333,21 @@ public:
PeriodicRunner* getPeriodicRunner() const;
//
+ // Logical sessions.
+ //
+
+ /**
+ * Set the logical session cache on this service context.
+ */
+ void setLogicalSessionCache(std::unique_ptr<LogicalSessionCache> cache) &;
+
+ /**
+ * Return a pointer to the logical session cache on this service context.
+ */
+ LogicalSessionCache* getLogicalSessionCache() const&;
+ LogicalSessionCache* getLogicalSessionCache() && = delete;
+
+ //
// Transport.
//
@@ -441,6 +457,11 @@ private:
std::unique_ptr<PeriodicRunner> _runner;
/**
+ * The logical session cache.
+ */
+ std::unique_ptr<LogicalSessionCache> _sessionCache;
+
+ /**
* The TransportLayerManager.
*/
std::unique_ptr<transport::TransportLayerManager> _transportLayerManager;