diff options
author | Matthew Saltz <matthew.saltz@mongodb.com> | 2019-05-07 17:39:06 -0400 |
---|---|---|
committer | Matthew Saltz <matthew.saltz@mongodb.com> | 2019-05-08 14:43:42 -0400 |
commit | d3ee35d6e3ac7a42cd5ad106c3ecb9fb554900c7 (patch) | |
tree | 0cb71f0550a6318f10dfb4f5b32d6a85abce9fd6 /src/mongo/s/client/shard_registry.h | |
parent | 71c55b48f31e759d1999c221ac4e7be020020776 (diff) | |
download | mongo-d3ee35d6e3ac7a42cd5ad106c3ecb9fb554900c7.tar.gz |
SERVER-39498 Make rollback trigger a lazy (rather than blocking) reload of the ShardRegistry
Diffstat (limited to 'src/mongo/s/client/shard_registry.h')
-rw-r--r-- | src/mongo/s/client/shard_registry.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/s/client/shard_registry.h b/src/mongo/s/client/shard_registry.h index f9707b2ae3e..5456f7bd06d 100644 --- a/src/mongo/s/client/shard_registry.h +++ b/src/mongo/s/client/shard_registry.h @@ -181,6 +181,12 @@ public: bool reload(OperationContext* opCtx); /** + * Clears all entries from the shard registry entries, which will force the registry to do a + * reload on next access. + */ + void clearEntries(); + + /** * Takes a connection string describing either a shard or config server replica set, looks * up the corresponding Shard object based on the replica set name, then updates the * ShardRegistry's notion of what hosts make up that shard. |