summaryrefslogtreecommitdiff
path: root/src/mongo/db/session.h
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/session.h
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/session.h')
-rw-r--r--src/mongo/db/session.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/session.h b/src/mongo/db/session.h
index 635f3fc7167..b26eb7cdb19 100644
--- a/src/mongo/db/session.h
+++ b/src/mongo/db/session.h
@@ -72,6 +72,9 @@ private:
// practice, it is only used inside of the SessionCatalog itself.
OperationContext* _checkoutOpCtx{nullptr};
+ // Keeps the last time this session was checked-out
+ Date_t _lastCheckout{Date_t::now()};
+
// Counter indicating the number of times ObservableSession::kill has been called on this
// session, which have not yet had a corresponding call to checkOutSessionForKill.
int _killsRequested{0};