diff options
author | Benety Goh <benety@mongodb.com> | 2015-11-11 13:26:33 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2015-11-13 16:19:11 -0500 |
commit | cb920169f3c3892fe3b35de30af6552c652adc00 (patch) | |
tree | d0473fa02923e479427eb264993009e4ed3745d9 | |
parent | 766b3e3508b7c1025dfc55ea8a4a01179989c9f4 (diff) | |
download | mongo-cb920169f3c3892fe3b35de30af6552c652adc00.tar.gz |
SERVER-21452 log begin and end of fetcher in bgsync
-rw-r--r-- | src/mongo/db/repl/bgsync.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/repl/bgsync.cpp b/src/mongo/db/repl/bgsync.cpp index ba9f0d66ad4..830da329ee1 100644 --- a/src/mongo/db/repl/bgsync.cpp +++ b/src/mongo/db/repl/bgsync.cpp @@ -359,6 +359,7 @@ void BackgroundSync::_produce(OperationContext* txn) { metadataObj, _replCoord->getConfig().getElectionTimeoutPeriod()); + LOG(1) << "scheduling fetcher to read remote oplog on " << source; auto scheduleStatus = fetcher.schedule(); if (!scheduleStatus.isOK()) { warning() << "unable to schedule fetcher to read remote oplog on " << source << ": " @@ -366,6 +367,7 @@ void BackgroundSync::_produce(OperationContext* txn) { return; } fetcher.wait(); + LOG(1) << "fetcher stopped reading remote oplog on " << source; // If the background sync is paused after the fetcher is started, we need to // re-evaluate our sync source and oplog common point. |