summaryrefslogtreecommitdiff
path: root/src/mongo/s/cluster_identity_loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/cluster_identity_loader.h')
-rw-r--r--src/mongo/s/cluster_identity_loader.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/s/cluster_identity_loader.h b/src/mongo/s/cluster_identity_loader.h
index 693c62483ad..43e51b9dc17 100644
--- a/src/mongo/s/cluster_identity_loader.h
+++ b/src/mongo/s/cluster_identity_loader.h
@@ -34,6 +34,7 @@
#include "mongo/bson/oid.h"
#include "mongo/db/repl/read_concern_args.h"
#include "mongo/platform/mutex.h"
+#include "mongo/s/catalog/sharding_catalog_client.h"
#include "mongo/stdx/condition_variable.h"
#include "mongo/util/hierarchical_acquisition.h"
@@ -73,7 +74,9 @@ public:
* If another thread is already in the process of loading the cluster ID, concurrent calls will
* wait for that thread to finish and then return its results.
*/
- Status loadClusterId(OperationContext* opCtx, const repl::ReadConcernLevel& readConcernLevel);
+ Status loadClusterId(OperationContext* opCtx,
+ ShardingCatalogClient* catalogClient,
+ const repl::ReadConcernLevel& readConcernLevel);
/**
* Called if the config.version document is rolled back. Notifies the ClusterIdentityLoader
@@ -93,6 +96,7 @@ private:
* the version document, and returns it.
*/
StatusWith<OID> _fetchClusterIdFromConfig(OperationContext* opCtx,
+ ShardingCatalogClient* catalogClient,
const repl::ReadConcernLevel& readConcernLevel);
Mutex _mutex =