From 4003ef1b40e4404fc42d8a13db7e3a12946e0832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Jos=C3=A9=20Grillo=20Ram=C3=ADrez?= Date: Thu, 24 Oct 2019 15:29:44 +0000 Subject: SERVER-42508 Convert SessionsCollection to throw instead of return status Part One: setupSessionsCollection --- src/mongo/db/sessions_collection_config_server.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mongo/db/sessions_collection_config_server.h') 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"); }; -- cgit v1.2.1