diff options
author | Judah Schvimer <judah@mongodb.com> | 2016-12-16 15:21:33 -0500 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2016-12-16 15:21:33 -0500 |
commit | 0cd2bf29d5798a395a07e67ae79ede9a5cefd411 (patch) | |
tree | bd1f1e1a3a6e7f77912078dc6478e8138ee07eea /src/mongo/db/repl/oplog_fetcher.cpp | |
parent | 530418b23c4c9d45cde993853967fe1b7b636c47 (diff) | |
download | mongo-0cd2bf29d5798a395a07e67ae79ede9a5cefd411.tar.gz |
SERVER-26538 improve sync source change logging
Diffstat (limited to 'src/mongo/db/repl/oplog_fetcher.cpp')
-rw-r--r-- | src/mongo/db/repl/oplog_fetcher.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/repl/oplog_fetcher.cpp b/src/mongo/db/repl/oplog_fetcher.cpp index ac683e6d616..2893a9099d6 100644 --- a/src/mongo/db/repl/oplog_fetcher.cpp +++ b/src/mongo/db/repl/oplog_fetcher.cpp @@ -510,8 +510,10 @@ void OplogFetcher::_callback(const Fetcher::QueryResponseStatus& result, if (_dataReplicatorExternalState->shouldStopFetching(_fetcher->getSource(), metadata)) { _finishCallback(Status(ErrorCodes::InvalidSyncSource, str::stream() << "sync source " << _fetcher->getSource().toString() - << " (last optime: " + << " (last visible optime: " << metadata.getLastOpVisible().toString() + << "; config version: " + << metadata.getConfigVersion() << "; sync source index: " << metadata.getSyncSourceIndex() << "; primary index: " |