From 0157ba83c0437c0f6d2c9820030647ebe27a6d30 Mon Sep 17 00:00:00 2001 From: Igor Solodovnikov Date: Sun, 14 Feb 2021 21:13:10 +0200 Subject: [PATCH] PSMDB-810 log more info during hot backup --- src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp index 6ca20801c13c5d..111a5f12e38f7b 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp @@ -2069,6 +2069,14 @@ Status WiredTigerKVEngine::hotBackup(OperationContext* opCtx, const std::string& fs::path destFile{std::get<1>(file)}; auto fsize{std::get<2>(file)}; + log() << "Hot backup copying {} bytes from '{}' to '{}'"_format( + fsize, srcFile.string(), destFile.string()); + if (!fs::exists(srcFile)) { + log() << "Source file does not exist: {}"_format(srcFile.string()); + } else { + log() << "Source file size is: {} bytes"_format(fs::file_size(srcFile)); + } + try { // Try creating destination directories if needed. const fs::path destDir(destFile.parent_path());