diff options
author | Randolph Tan <randolph@10gen.com> | 2014-10-27 14:53:04 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2014-10-29 13:03:38 -0400 |
commit | fbbb0d2a1d845728cd714272199a652573e2f27d (patch) | |
tree | ec2286f7c8e93582a7306c059fbe4c5261cbb03a /src/mongo/s/config.h | |
parent | 27c5131ff96d66ecc7ac8f7eee0ba72a7aa3c890 (diff) | |
download | mongo-fbbb0d2a1d845728cd714272199a652573e2f27d.tar.gz |
SERVER-15593 Initial autosplit heuristics are very aggressive when config servers are down
Diffstat (limited to 'src/mongo/s/config.h')
-rw-r--r-- | src/mongo/s/config.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mongo/s/config.h b/src/mongo/s/config.h index fceb3f6b219..78810ed8653 100644 --- a/src/mongo/s/config.h +++ b/src/mongo/s/config.h @@ -240,8 +240,16 @@ namespace mongo { */ bool checkHostsAreUnique( const std::vector<std::string>& configHosts, std::string* errmsg ); - bool allUp(); - bool allUp( std::string& errmsg ); + /** + * Checks if all config servers are up. + * + * If localCheckOnly is true, only check if the socket is still open with no errors. + * Otherwise, also send a getLastError command with recv timeout. + * + * TODO: fix this - SERVER-15811 + */ + bool allUp(bool localCheckOnly); + bool allUp(bool localCheckOnly, std::string& errmsg); int dbConfigVersion(); int dbConfigVersion( DBClientBase& conn ); |