diff options
author | Spencer T Brody <spencer@mongodb.com> | 2016-08-24 15:56:55 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2016-08-26 16:55:38 -0400 |
commit | 6bf9fd2e5a5f043b950cb77361be3c1ed7a7d0af (patch) | |
tree | dd6d2cdcf3d3ef2eee3d156b3417b116d2f5ef3b /src/mongo/s/catalog/sharding_catalog_manager.h | |
parent | a4a9a9ad29415239091db171e01f45677464f668 (diff) | |
download | mongo-6bf9fd2e5a5f043b950cb77361be3c1ed7a7d0af.tar.gz |
SERVER-25677 Clear cached clusterId if config.version document is rolled back.
Diffstat (limited to 'src/mongo/s/catalog/sharding_catalog_manager.h')
-rw-r--r-- | src/mongo/s/catalog/sharding_catalog_manager.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/s/catalog/sharding_catalog_manager.h b/src/mongo/s/catalog/sharding_catalog_manager.h index 3a0c9c34a74..63f242d3598 100644 --- a/src/mongo/s/catalog/sharding_catalog_manager.h +++ b/src/mongo/s/catalog/sharding_catalog_manager.h @@ -170,6 +170,14 @@ public: virtual Status initializeConfigDatabaseIfNeeded(OperationContext* txn) = 0; /** + * Called if the config.version document is rolled back. Indicates to the + * ShardingCatalogManager that on the next transition to primary + * initializeConfigDatabaseIfNeeded will need to re-run the work to initialize the config + * database. + */ + virtual void discardCachedConfigDatabaseInitializationState() = 0; + + /** * For upgrade from 3.2 to 3.4, for each shard in config.shards that is not marked as sharding * aware, schedules a task to upsert a shardIdentity doc into the shard and mark the shard as * sharding aware. |