diff options
Diffstat (limited to 'src/mongo/s/config.h')
-rw-r--r-- | src/mongo/s/config.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/config.h b/src/mongo/s/config.h index 7286e829e4a..788683e82d3 100644 --- a/src/mongo/s/config.h +++ b/src/mongo/s/config.h @@ -164,7 +164,7 @@ namespace mongo { return _primary; } - void setPrimary( string s ); + void setPrimary( const std::string& s ); bool load(); bool reload(); @@ -226,7 +226,7 @@ namespace mongo { */ bool init( vector<string> configHosts ); - bool init( string s ); + bool init( const std::string& s ); bool allUp(); bool allUp( string& errmsg ); @@ -268,7 +268,7 @@ namespace mongo { bool checkConfigServersConsistent( string& errmsg , int tries = 4 ) const; private: - string getHost( string name , bool withPort ); + string getHost( const std::string& name , bool withPort ); vector<string> _config; }; |