summaryrefslogtreecommitdiff
path: root/src/mongo/s/config.h
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2014-10-27 14:53:04 -0400
committerRandolph Tan <randolph@10gen.com>2014-10-29 13:03:38 -0400
commitfbbb0d2a1d845728cd714272199a652573e2f27d (patch)
treeec2286f7c8e93582a7306c059fbe4c5261cbb03a /src/mongo/s/config.h
parent27c5131ff96d66ecc7ac8f7eee0ba72a7aa3c890 (diff)
downloadmongo-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.h12
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 );