diff options
author | Tad Marshall <tad@10gen.com> | 2013-08-04 07:54:44 -0400 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2013-08-04 07:54:44 -0400 |
commit | f141a861efcbefd72101544c8990fdff7ca27741 (patch) | |
tree | 941cc464bcdc00fd110ecf95ad8ebfc9cacf13bb /src/mongo/client/dbclient_rs.cpp | |
parent | 0ab11657c330c9233be64e997a1627dc82e1a647 (diff) | |
download | mongo-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.cpp | 1 |
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(); |