summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristina Chodorow <kristina@10gen.com>2010-11-18 15:17:11 -0500
committerEliot Horowitz <eliot@10gen.com>2010-11-20 00:16:58 -0500
commit64fd91d00ff3b9919421427d2152f29d4826e5fd (patch)
tree1a7c432ca7f915e3859d61fc15f08f34f60e3749
parentcdbc4eba5950b8ae2572845c4206e841cb309672 (diff)
downloadmongo-64fd91d00ff3b9919421427d2152f29d4826e5fd.tar.gz
honor rs config timeout SERVER-2045
-rw-r--r--db/repl/connections.h3
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;