Skip to content

Commit

Permalink
PSMDB-810 explicitly close destination file to avoid error swallowing
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsol committed Feb 12, 2021
1 parent bfc13f1 commit 598a093
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,8 @@ static void copy_file_size(const boost::filesystem::path& srcFile, const boost::
dst.write(bufptr, cnt);
fsize -= cnt;
}

dst.close();
}

Status WiredTigerKVEngine::_hotBackupPopulateLists(OperationContext* opCtx, const std::string& path, std::vector<DBTuple>& dbList, std::vector<FileTuple>& filesList) {
Expand Down

0 comments on commit 598a093

Please sign in to comment.