diff options
author | Spencer T Brody <spencer@mongodb.com> | 2015-08-25 17:53:59 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2015-09-02 12:05:30 -0400 |
commit | 0fab941d48dec833d6b59b723292fb528219189e (patch) | |
tree | 086f4af6aa65d2775ea49fc8cce209f358746094 /src/mongo/s/config.h | |
parent | 8df5b05d0be20fe4b6dab7cadad8244ae527e519 (diff) | |
download | mongo-0fab941d48dec833d6b59b723292fb528219189e.tar.gz |
SERVER-19608 Send shard initialization data when talking through NetworkInterface
Diffstat (limited to 'src/mongo/s/config.h')
-rw-r--r-- | src/mongo/s/config.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/mongo/s/config.h b/src/mongo/s/config.h index d01a2951664..d0998d90085 100644 --- a/src/mongo/s/config.h +++ b/src/mongo/s/config.h @@ -212,8 +212,20 @@ class ConfigServer { public: static void reloadSettings(OperationContext* txn); - static void replicaSetChange(const std::string& setName, - const std::string& newConnectionString); + /** + * For use in mongod which only needs notifications about the config server replset membership + * changes, to update the ShardRegistry. + */ + static void configReplicaSetChange(const std::string& setName, + const std::string& newConnectionString); + + /** + * For use in mongos which needs notifications about changes to both the config server replset + * membership (to update the ShardRegistry, same as in mongod) and for changes to regular shard + * replset membership changes to update the config.shards collection. + */ + static void configOrShardReplicaSetChange(const std::string& setName, + const std::string& newConnectionString); }; } // namespace mongo |