summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgregs <greg@10gen.com>2011-04-26 14:19:57 -0400
committergregs <greg@10gen.com>2011-04-26 14:28:30 -0400
commitee92cf98824cbaa6f5692a2fdcc89932c396cd40 (patch)
treed787b540e09fba3a8a097009ae5d16a28fd22179
parentb661f15b4d10920eecaa4fc659f2f2a4b8d14b1a (diff)
downloadmongo-ee92cf98824cbaa6f5692a2fdcc89932c396cd40.tar.gz
log default rs heartbeats
-rw-r--r--db/repl/rs_sync.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/db/repl/rs_sync.cpp b/db/repl/rs_sync.cpp
index d14581fab4a..815a224a79b 100644
--- a/db/repl/rs_sync.cpp
+++ b/db/repl/rs_sync.cpp
@@ -488,7 +488,11 @@ namespace mongo {
are no heartbeat threads, so we do it here to be sure. this is relevant if the singleton
member has done a stepDown() and needs to come back up.
*/
- OCCASIONALLY mgr->send( boost::bind(&Manager::msgCheckNewState, theReplSet->mgr) );
+ OCCASIONALLY {
+ log() << "default rs heartbeat starting..." << endl;
+ mgr->send( boost::bind(&Manager::msgCheckNewState, theReplSet->mgr) );
+ log() << "rs heartbeat finished" << endl;
+ }
}
}