Skip to content

Commit 0157ba8

Browse files
committed
PSMDB-810 log more info during hot backup
1 parent bec98c3 commit 0157ba8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,6 +2069,14 @@ Status WiredTigerKVEngine::hotBackup(OperationContext* opCtx, const std::string&
20692069
fs::path destFile{std::get<1>(file)};
20702070
auto fsize{std::get<2>(file)};
20712071

2072+
log() << "Hot backup copying {} bytes from '{}' to '{}'"_format(
2073+
fsize, srcFile.string(), destFile.string());
2074+
if (!fs::exists(srcFile)) {
2075+
log() << "Source file does not exist: {}"_format(srcFile.string());
2076+
} else {
2077+
log() << "Source file size is: {} bytes"_format(fs::file_size(srcFile));
2078+
}
2079+
20722080
try {
20732081
// Try creating destination directories if needed.
20742082
const fs::path destDir(destFile.parent_path());

0 commit comments

Comments
 (0)