summaryrefslogtreecommitdiff
path: root/src/mongo/db/sessions_collection_config_server.h
diff options
context:
space:
mode:
authorMarcos José Grillo Ramírez <marcos.grillo@10gen.com>2019-10-24 15:29:44 +0000
committerevergreen <evergreen@mongodb.com>2019-10-24 15:29:44 +0000
commit4003ef1b40e4404fc42d8a13db7e3a12946e0832 (patch)
treec0997b9a30a40ac32d5a56724fb975c34c608a39 /src/mongo/db/sessions_collection_config_server.h
parentd7469a75b1643157994a44134c9fdb061cca354a (diff)
downloadmongo-4003ef1b40e4404fc42d8a13db7e3a12946e0832.tar.gz
SERVER-42508 Convert SessionsCollection to throw instead of return status Part One: setupSessionsCollection
Diffstat (limited to 'src/mongo/db/sessions_collection_config_server.h')
-rw-r--r--src/mongo/db/sessions_collection_config_server.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/sessions_collection_config_server.h b/src/mongo/db/sessions_collection_config_server.h
index 701d055772a..d7ee8d3fb63 100644
--- a/src/mongo/db/sessions_collection_config_server.h
+++ b/src/mongo/db/sessions_collection_config_server.h
@@ -53,7 +53,7 @@ public:
*
* If there are no shards in this cluster, this method will do nothing.
*/
- Status setupSessionsCollection(OperationContext* opCtx) override;
+ void setupSessionsCollection(OperationContext* opCtx) override;
/**
* Checks if the sessions collection exists.
@@ -61,8 +61,8 @@ public:
Status checkSessionsCollectionExists(OperationContext* opCtx) override;
private:
- Status _shardCollectionIfNeeded(OperationContext* opCtx);
- Status _generateIndexesIfNeeded(OperationContext* opCtx);
+ void _shardCollectionIfNeeded(OperationContext* opCtx);
+ void _generateIndexesIfNeeded(OperationContext* opCtx);
Mutex _mutex = MONGO_MAKE_LATCH("SessionsCollectionConfigServer::_mutex");
};