summaryrefslogtreecommitdiff
path: root/src/mongo/client/dbclient_rs.cpp
diff options
context:
space:
mode:
authorTad Marshall <tad@10gen.com>2013-08-04 07:54:44 -0400
committerTad Marshall <tad@10gen.com>2013-08-04 07:54:44 -0400
commitf141a861efcbefd72101544c8990fdff7ca27741 (patch)
tree941cc464bcdc00fd110ecf95ad8ebfc9cacf13bb /src/mongo/client/dbclient_rs.cpp
parent0ab11657c330c9233be64e997a1627dc82e1a647 (diff)
downloadmongo-f141a861efcbefd72101544c8990fdff7ca27741.tar.gz
SERVER-8707 Sleep 10 seconds before entering ReplicaSetMonitorWatcher's loop
This restores the startup timing that was changed by commit e3b8349ec305b00bdb7107f2d887549640a15c90, while preserving the smaller time window within the loop between checking for termination and calling ReplicaSetMonitor::checkAll().
Diffstat (limited to 'src/mongo/client/dbclient_rs.cpp')
-rw-r--r--src/mongo/client/dbclient_rs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/client/dbclient_rs.cpp b/src/mongo/client/dbclient_rs.cpp
index d1ea4bc1b21..3027f6059a8 100644
--- a/src/mongo/client/dbclient_rs.cpp
+++ b/src/mongo/client/dbclient_rs.cpp
@@ -82,6 +82,7 @@ namespace mongo {
protected:
void run() {
log() << "starting" << endl;
+ sleepsecs( 10 );
while ( !inShutdown() && !StaticObserver::_destroyingStatics ) {
try {
ReplicaSetMonitor::checkAll();