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, 6 insertions, 0 deletions
diff --git a/src/mongo/s/cluster_identity_loader.h b/src/mongo/s/cluster_identity_loader.h
index 25645111ef1..d34f5368850 100644
--- a/src/mongo/s/cluster_identity_loader.h
+++ b/src/mongo/s/cluster_identity_loader.h
@@ -73,6 +73,12 @@ public:
*/
Status loadClusterId(OperationContext* txn, const repl::ReadConcernLevel& readConcernLevel);
+ /**
+ * Called if the config.version document is rolled back. Notifies the ClusterIdentityLoader
+ * that the cached cluster ID is invalid and needs to be reloaded.
+ */
+ void discardCachedClusterId();
+
private:
enum class InitializationState {
kUninitialized, // We have never successfully loaded the cluster ID