summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/repl/data_replicator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/repl/data_replicator.cpp b/src/mongo/db/repl/data_replicator.cpp
index b9b7b35640f..a6996f47e6f 100644
--- a/src/mongo/db/repl/data_replicator.cpp
+++ b/src/mongo/db/repl/data_replicator.cpp
@@ -1351,6 +1351,8 @@ void DataReplicator::_enqueueDocuments(Fetcher::Documents::const_iterator begin,
void DataReplicator::_onOplogFetchFinish(const Status& status, const OpTimeWithHash& lastFetched) {
_fetcherPaused = true;
+ log() << "Finished fetching oplog during initial sync: " << redact(status)
+ << ". Last fetched optime and hash: " << lastFetched;
if (status.code() == ErrorCodes::CallbackCanceled) {
return;
} else if (status.isOK()) {