diff options
author | Antonin Kral <a.kral@bobek.cz> | 2011-03-17 00:05:43 +0100 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2011-03-17 00:05:43 +0100 |
commit | 582fc32574a3b158c81e49cb00e6ae59205e66ba (patch) | |
tree | ac64a3243e0d2121709f685695247052858115c8 /db/repl/health.h | |
parent | 2761bffa96595ac1698d86bbc2e95ebb0d4d6e93 (diff) | |
download | mongodb-582fc32574a3b158c81e49cb00e6ae59205e66ba.tar.gz |
Imported Upstream version 1.8.0
Diffstat (limited to 'db/repl/health.h')
-rw-r--r-- | db/repl/health.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/db/repl/health.h b/db/repl/health.h index 645a3b5..a32db00 100644 --- a/db/repl/health.h +++ b/db/repl/health.h @@ -23,8 +23,8 @@ namespace mongo { /* throws */ bool requestHeartbeat(string setname, string fromHost, string memberFullName, BSONObj& result, int myConfigVersion, int& theirConfigVersion, bool checkEmpty = false); - struct HealthOptions { - HealthOptions() { + struct HealthOptions { + HealthOptions() { heartbeatSleepMillis = 2000; heartbeatTimeoutMillis = 10000; heartbeatConnRetries = 2; @@ -42,8 +42,8 @@ namespace mongo { uassert(13113, "bad replset heartbeat option", heartbeatTimeoutMillis >= 10); } - bool operator==(const HealthOptions& r) const { - return heartbeatSleepMillis==r.heartbeatSleepMillis && heartbeatTimeoutMillis==r.heartbeatTimeoutMillis && heartbeatConnRetries==heartbeatConnRetries; + bool operator==(const HealthOptions& r) const { + return heartbeatSleepMillis==r.heartbeatSleepMillis && heartbeatTimeoutMillis==r.heartbeatTimeoutMillis && heartbeatConnRetries==heartbeatConnRetries; } }; |