diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-04-28 17:36:35 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-04-28 17:36:35 +0000 |
commit | 11b2e49ab01b00681c56aa2a8a079ae374b48344 (patch) | |
tree | 15e89a7a7f192b9874b6379eea9dd56aa027a420 /bin | |
parent | e48ce8770a42e80bc33a655777bed644367c1f16 (diff) |
Notify about full file uploads. (refs #3)
Diffstat (limited to 'bin')
-rw-r--r-- | bin/bbackupd/BackupClientDirectoryRecord.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/bbackupd/BackupClientDirectoryRecord.cpp b/bin/bbackupd/BackupClientDirectoryRecord.cpp index 22861f76..8cc7e78e 100644 --- a/bin/bbackupd/BackupClientDirectoryRecord.cpp +++ b/bin/bbackupd/BackupClientDirectoryRecord.cpp @@ -31,6 +31,7 @@ #include "Archive.h" #include "PathUtils.h" #include "Logging.h" +#include "ReadLoggingStream.h" #include "MemLeakFindOn.h" @@ -1357,9 +1358,13 @@ int64_t BackupClientDirectoryRecord::UploadFile(BackupClientDirectoryRecord::Syn if(doNormalUpload) { // below threshold or nothing to diff from, so upload whole + rParams.GetProgressNotifier().NotifyFileUploading(this, + rFilename); // Prepare to upload, getting a stream which will encode the file as we go along - std::auto_ptr<IOStream> upload(BackupStoreFile::EncodeFile(rFilename.c_str(), mObjectID, rStoreFilename)); + std::auto_ptr<IOStream> upload( + BackupStoreFile::EncodeFile(rFilename.c_str(), + mObjectID, rStoreFilename)); // Send to store std::auto_ptr<BackupProtocolClientSuccess> stored( |