diff options
Diffstat (limited to 'db/repl/health.h')
-rw-r--r-- | db/repl/health.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/db/repl/health.h b/db/repl/health.h index a32db00..55cca93 100644 --- a/db/repl/health.h +++ b/db/repl/health.h @@ -24,11 +24,11 @@ namespace mongo { bool requestHeartbeat(string setname, string fromHost, string memberFullName, BSONObj& result, int myConfigVersion, int& theirConfigVersion, bool checkEmpty = false); struct HealthOptions { - HealthOptions() { - heartbeatSleepMillis = 2000; - heartbeatTimeoutMillis = 10000; - heartbeatConnRetries = 2; - } + HealthOptions() : + heartbeatSleepMillis(2000), + heartbeatTimeoutMillis( 10000 ), + heartbeatConnRetries(2) + { } bool isDefault() const { return *this == HealthOptions(); } @@ -43,8 +43,8 @@ namespace mongo { } bool operator==(const HealthOptions& r) const { - return heartbeatSleepMillis==r.heartbeatSleepMillis && heartbeatTimeoutMillis==r.heartbeatTimeoutMillis && heartbeatConnRetries==heartbeatConnRetries; + return heartbeatSleepMillis==r.heartbeatSleepMillis && heartbeatTimeoutMillis==r.heartbeatTimeoutMillis && heartbeatConnRetries==r.heartbeatConnRetries; } }; - + } |