summaryrefslogtreecommitdiff
path: root/src/mongo/db/sessions_collection_sharded.h
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2017-10-06 15:12:40 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-10-11 00:52:09 -0400
commit45d35fe3fcefefe1282b8e0dfc8cd76cb247951d (patch)
tree6643f175807ae1c20902885846d29e888127f9a6 /src/mongo/db/sessions_collection_sharded.h
parent8b3694d704d4c472adba87e8fb0827372324c215 (diff)
downloadmongo-45d35fe3fcefefe1282b8e0dfc8cd76cb247951d.tar.gz
SERVER-31184 Make servers automatically set up config.system.sessions
Diffstat (limited to 'src/mongo/db/sessions_collection_sharded.h')
-rw-r--r--src/mongo/db/sessions_collection_sharded.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/sessions_collection_sharded.h b/src/mongo/db/sessions_collection_sharded.h
index 01ac730e09a..d8f5c6cf3f2 100644
--- a/src/mongo/db/sessions_collection_sharded.h
+++ b/src/mongo/db/sessions_collection_sharded.h
@@ -44,6 +44,12 @@ class OperationContext;
class SessionsCollectionSharded : public SessionsCollection {
public:
/**
+ * Ensures that the sessions collection exists, is sharded,
+ * and has the proper indexes.
+ */
+ Status setupSessionsCollection(OperationContext* opCtx) override;
+
+ /**
* Updates the last-use times on the given sessions to be greater than
* or equal to the current time.
*/
@@ -60,6 +66,9 @@ public:
Status removeTransactionRecords(OperationContext* opCtx,
const LogicalSessionIdSet& sessions) override;
+
+protected:
+ Status _checkCacheForSessionsCollection(OperationContext* opCtx);
};
} // namespace mongo