diff options
Diffstat (limited to 'src/mongo/s/client/shard_registry.h')
-rw-r--r-- | src/mongo/s/client/shard_registry.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/mongo/s/client/shard_registry.h b/src/mongo/s/client/shard_registry.h index 87ad1cc0523..f9707b2ae3e 100644 --- a/src/mongo/s/client/shard_registry.h +++ b/src/mongo/s/client/shard_registry.h @@ -259,22 +259,11 @@ public: void shutdown(); /** - * For use in mongos and mongod which needs notifications about changes to shard and config - * server replset membership to update the ShardRegistry. - * - * This is expected to be run in an existing thread. - */ - static void replicaSetChangeShardRegistryUpdateHook(const std::string& setName, - const std::string& newConnectionString); - - /** * For use in mongos which needs notifications about changes to shard replset membership to * update the config.shards collection. - * - * This is expected to be run in a brand new thread. */ - static void replicaSetChangeConfigServerUpdateHook(const std::string& setName, - const std::string& newConnectionString); + static void updateReplicaSetOnConfigServer(ServiceContext* serviceContex, + const ConnectionString& connStr) noexcept; private: /** |