summaryrefslogtreecommitdiff
path: root/src/mongo/s/client/shard_registry.h
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2019-03-11 11:28:47 -0400
committerBen Caimano <ben.caimano@10gen.com>2019-04-16 16:24:22 -0400
commitd48f6caba6f97a578828d89ec2b95c41cbc5c67a (patch)
tree7ec768d3f9c4287fcd028f403a41bdd0b87c1cb3 /src/mongo/s/client/shard_registry.h
parent6fd5b4d17b87aa652381fd28cefe2a7eb5ec8d5d (diff)
downloadmongo-d48f6caba6f97a578828d89ec2b95c41cbc5c67a.tar.gz
SERVER-39818 Split RSM notification functionality into a new class
Diffstat (limited to 'src/mongo/s/client/shard_registry.h')
-rw-r--r--src/mongo/s/client/shard_registry.h15
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:
/**