summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-04-23 13:50:54 -0400
committerBenety Goh <benety@mongodb.com>2019-04-23 13:51:19 -0400
commit8d8f1d7b95a7d8afd5bf1d2536b861e467e7ca81 (patch)
tree91204002cc23d3c8d2e930a01831d8070a27c715 /src/mongo/db
parent2093cc623afeaf1cd11fbb8e6f6430c46bd4bd8a (diff)
downloadmongo-8d8f1d7b95a7d8afd5bf1d2536b861e467e7ca81.tar.gz
SERVER-40365 log rollback filenames
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/repl/rs_rollback.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/repl/rs_rollback.cpp b/src/mongo/db/repl/rs_rollback.cpp
index b7e505ffac8..365cc86bdb8 100644
--- a/src/mongo/db/repl/rs_rollback.cpp
+++ b/src/mongo/db/repl/rs_rollback.cpp
@@ -756,6 +756,10 @@ void dropCollection(OperationContext* opCtx,
Database* db) {
if (RollbackImpl::shouldCreateDataFiles()) {
RemoveSaver removeSaver("rollback", "", nss.ns());
+ log() << "Rolling back createCollection on " << nss
+ << ": Preparing to write documents to a rollback file for a collection " << nss
+ << " with uuid " << *(collection->uuid()) << " to "
+ << removeSaver.file().generic_string();
// Performs a collection scan and writes all documents in the collection to disk
// in order to keep an archive of items that were rolled back.
@@ -1298,6 +1302,9 @@ void rollback_internal::syncFixUp(OperationContext* opCtx,
if (RollbackImpl::shouldCreateDataFiles()) {
removeSaver = std::make_unique<RemoveSaver>("rollback", "", nss.ns());
+ log() << "Preparing to write deleted documents to a rollback file for collection "
+ << nss << " with uuid " << uuid.toString() << " to "
+ << removeSaver->file().generic_string();
}
const auto& goodVersionsByDocID = nsAndGoodVersionsByDocID.second;