summaryrefslogtreecommitdiff
path: root/src/mongo/db/sessions_collection.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2019-05-08 18:14:07 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2019-05-17 07:18:50 -0400
commitaa9f6a202e0709adf14046cb27504864adaf732b (patch)
tree144df4c5076284b611cf67ff54d63f2190a3a037 /src/mongo/db/sessions_collection.cpp
parent1d05d4b956221cfeb731892a4387d1470f999114 (diff)
downloadmongo-aa9f6a202e0709adf14046cb27504864adaf732b.tar.gz
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.
Diffstat (limited to 'src/mongo/db/sessions_collection.cpp')
-rw-r--r--src/mongo/db/sessions_collection.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/sessions_collection.cpp b/src/mongo/db/sessions_collection.cpp
index 7ffc762201e..6421302ab28 100644
--- a/src/mongo/db/sessions_collection.cpp
+++ b/src/mongo/db/sessions_collection.cpp
@@ -46,9 +46,6 @@
#include "mongo/stdx/memory.h"
namespace mongo {
-
-constexpr StringData SessionsCollection::kSessionsTTLIndex;
-
namespace {
// This batch size is chosen to ensure that we don't form requests larger than the 16mb limit.
@@ -161,6 +158,10 @@ Status runBulkCmd(StringData label,
} // namespace
+constexpr StringData SessionsCollection::kSessionsTTLIndex;
+
+SessionsCollection::SessionsCollection() = default;
+
SessionsCollection::~SessionsCollection() = default;
SessionsCollection::SendBatchFn SessionsCollection::makeSendFnForBatchWrite(