diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-06-04 17:28:52 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-06-04 20:42:33 -0400 |
commit | 975319ad4e7af76ca288d2bcb65c94a4006c2d4d (patch) | |
tree | 8742e8d72c7ca1dd0c96258667d359f32ce51637 /src/mongo/s/config.h | |
parent | 7b6724f3ad2600514c3ae5e59af873de75b026df (diff) | |
download | mongo-975319ad4e7af76ca288d2bcb65c94a4006c2d4d.tar.gz |
SERVER-18127 Remove all references to configServer
This change gets rid of all references to the global configServer
variable. The class still remains with two static methods which will be
distributed to Grid.
Diffstat (limited to 'src/mongo/s/config.h')
-rw-r--r-- | src/mongo/s/config.h | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/src/mongo/s/config.h b/src/mongo/s/config.h index 3d46baff52e..c45c9d9cc6d 100644 --- a/src/mongo/s/config.h +++ b/src/mongo/s/config.h @@ -180,33 +180,10 @@ namespace mongo { class ConfigServer { public: - ConfigServer() = default; + static void reloadSettings(); - bool ok( bool checkConsistency = false ); - - const Shard& getPrimary() const { return _primary; } - - /** - call at startup, this will initiate connection to the grid db - */ - bool init( const ConnectionString& configCS ); - - /** - * Check hosts are unique. Returns true if all configHosts - * hostname:port entries are unique. Otherwise return false - * and fill errmsg with message containing the offending server. - */ - bool checkHostsAreUnique( const std::vector<std::string>& configHosts, std::string* errmsg ); - - void reloadSettings(); - - void replicaSetChange(const std::string& setName, const std::string& newConnectionString); - - private: - std::string getHost( const std::string& name , bool withPort ); - - std::vector<std::string> _config; - Shard _primary; + static void replicaSetChange(const std::string& setName, + const std::string& newConnectionString); }; } // namespace mongo |