diff options
author | Kristina Chodorow <kristina@10gen.com> | 2010-11-18 15:17:11 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-11-20 00:16:58 -0500 |
commit | 64fd91d00ff3b9919421427d2152f29d4826e5fd (patch) | |
tree | 1a7c432ca7f915e3859d61fc15f08f34f60e3749 /db/repl/connections.h | |
parent | cdbc4eba5950b8ae2572845c4206e841cb309672 (diff) | |
download | mongo-64fd91d00ff3b9919421427d2152f29d4826e5fd.tar.gz |
honor rs config timeout SERVER-2045
Diffstat (limited to 'db/repl/connections.h')
-rw-r--r-- | db/repl/connections.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/repl/connections.h b/db/repl/connections.h index 19807920558..cdf2fad8838 100644 --- a/db/repl/connections.h +++ b/db/repl/connections.h @@ -66,7 +66,8 @@ namespace mongo { struct X { mutex z; DBClientConnection cc; - X() : z("X"), cc(/*reconnect*/true, 0, /*timeout*/10) { + X() : z("X"), cc(/*reconnect*/ true, 0, + /*timeout*/ theReplSet ? theReplSet->config().ho.heartbeatTimeoutMillis/1000.0 : 10.0) { cc._logLevel = 2; } } *x; |