summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient_rs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/dbclient_rs.cpp')
-rw-r--r--src/mongo/client/dbclient_rs.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/client/dbclient_rs.cpp b/src/mongo/client/dbclient_rs.cpp
index 4c94696c829..69419586fae 100644
--- a/src/mongo/client/dbclient_rs.cpp
+++ b/src/mongo/client/dbclient_rs.cpp
@@ -451,7 +451,8 @@ namespace mongo {
: _lock( "ReplicaSetMonitor instance" ),
_checkConnectionLock( "ReplicaSetMonitor check connection lock" ),
_name( name ), _master(-1),
- _nextSlave(0), _failedChecks(0), _localThresholdMillis(cmdLine.defaultLocalThresholdMillis) {
+ _nextSlave(0), _failedChecks(0),
+ _localThresholdMillis(serverGlobalParams.defaultLocalThresholdMillis) {
uassert( 13642 , "need at least 1 node for a replica set" , servers.size() > 0 );