summaryrefslogtreecommitdiff
path: root/src/mongo/db/logical_session_cache.cpp
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/logical_session_cache.cpp
parentb9739a9b4bf02790d427a8e4910629f8c378c5fb (diff)
downloadmongo-12014e33b8de9fd9daa6da37b478066c5486857f.tar.gz
SERVER-29475 Install the logical session cache
Diffstat (limited to 'src/mongo/db/logical_session_cache.cpp')
-rw-r--r--src/mongo/db/logical_session_cache.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mongo/db/logical_session_cache.cpp b/src/mongo/db/logical_session_cache.cpp
index 1c94e019ac3..8aa1eaba802 100644
--- a/src/mongo/db/logical_session_cache.cpp
+++ b/src/mongo/db/logical_session_cache.cpp
@@ -32,12 +32,25 @@
#include "mongo/db/logical_session_cache.h"
+#include "mongo/db/server_parameters.h"
#include "mongo/util/duration.h"
#include "mongo/util/log.h"
#include "mongo/util/periodic_runner.h"
namespace mongo {
+MONGO_EXPORT_STARTUP_SERVER_PARAMETER(logicalSessionRecordCacheSize,
+ int,
+ LogicalSessionCache::kLogicalSessionCacheDefaultCapacity);
+
+MONGO_EXPORT_STARTUP_SERVER_PARAMETER(localLogicalSessionTimeoutMinutes,
+ int,
+ LogicalSessionCache::kLogicalSessionDefaultTimeout.count());
+
+MONGO_EXPORT_STARTUP_SERVER_PARAMETER(logicalSessionRefreshMinutes,
+ int,
+ LogicalSessionCache::kLogicalSessionDefaultRefresh.count());
+
constexpr int LogicalSessionCache::kLogicalSessionCacheDefaultCapacity;
constexpr Minutes LogicalSessionCache::kLogicalSessionDefaultTimeout;
constexpr Minutes LogicalSessionCache::kLogicalSessionDefaultRefresh;