Skip to content

Commit

Permalink
PSMDB-810 log more info during hot backup
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsol committed Feb 15, 2021
1 parent bec98c3 commit 0157ba8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 0157ba8

Please sign in to comment.