diff options
author | Blake Oler <blake.oler@mongodb.com> | 2018-10-10 10:48:11 -0400 |
---|---|---|
committer | Blake Oler <blake.oler@mongodb.com> | 2018-10-22 18:04:36 -0400 |
commit | c388d2db35d576862ebf42758686df340bc0bb9f (patch) | |
tree | 5f7e914d3cd2a01bba3e420e65e25a7ceacf6056 /src/mongo/db/sessions_collection_sharded.h | |
parent | 826c8b47c283749bb6f751d57729c6c3ac160a75 (diff) | |
download | mongo-c388d2db35d576862ebf42758686df340bc0bb9f.tar.gz |
SERVER-36964 Prevent secondaries in SessionsCollectionRS from attempting to set up the sessions collection.
(cherry picked from commit 6894b72f134534c3739a66ed9eee11e265b9c1e1)
Diffstat (limited to 'src/mongo/db/sessions_collection_sharded.h')
-rw-r--r-- | src/mongo/db/sessions_collection_sharded.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/sessions_collection_sharded.h b/src/mongo/db/sessions_collection_sharded.h index 333c202337e..39e1ff29087 100644 --- a/src/mongo/db/sessions_collection_sharded.h +++ b/src/mongo/db/sessions_collection_sharded.h @@ -52,6 +52,12 @@ public: Status setupSessionsCollection(OperationContext* opCtx) override; /** + * Checks if the sessions collection exists. Does not check if the index exists in the sharded + * version of this function. + */ + virtual Status checkSessionsCollectionExists(OperationContext* opCtx) override; + + /** * Updates the last-use times on the given sessions to be greater than * or equal to the current time. */ |