summaryrefslogtreecommitdiff
path: root/src/mongo/db/logical_session_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/logical_session_cache.h')
-rw-r--r--src/mongo/db/logical_session_cache.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/logical_session_cache.h b/src/mongo/db/logical_session_cache.h
index 703ec97a337..e035ee13d7f 100644
--- a/src/mongo/db/logical_session_cache.h
+++ b/src/mongo/db/logical_session_cache.h
@@ -32,7 +32,7 @@
#include <boost/optional.hpp>
#include "mongo/base/status.h"
-#include "mongo/db/commands/end_sessions_gen.h"
+#include "mongo/db/logical_session_cache_gen.h"
#include "mongo/db/logical_session_cache_stats_gen.h"
#include "mongo/db/logical_session_id.h"
#include "mongo/db/refresh_sessions_gen.h"
@@ -58,6 +58,11 @@ public:
virtual ~LogicalSessionCache() = 0;
/**
+ * Invoked on service shutdown time in order to join the cache's refresher and reaper tasks.
+ */
+ virtual void joinOnShutDown() = 0;
+
+ /**
* If the cache contains a record for this LogicalSessionId, promotes that lsid
* to be the most recently used and updates its lastUse date to be the current
* time. Returns an error if the session was not found.