summaryrefslogtreecommitdiff
path: root/bin/bbackupquery/BackupQueries.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2009-01-03 18:58:43 +0000
committerChris Wilson <chris+github@qwirx.com>2009-01-03 18:58:43 +0000
commite9070532716f24451850b1434606be0802524354 (patch)
tree498785438f2dbbf2047821963484d9e190653e7e /bin/bbackupquery/BackupQueries.cpp
parentc56e4f5d4049c1c6ede4d899a22c7de87d331153 (diff)
Compare API for notification on starting to compare a file or directory.
Diffstat (limited to 'bin/bbackupquery/BackupQueries.cpp')
-rw-r--r--bin/bbackupquery/BackupQueries.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/bbackupquery/BackupQueries.cpp b/bin/bbackupquery/BackupQueries.cpp
index 76ecfcf8..85f659d4 100644
--- a/bin/bbackupquery/BackupQueries.cpp
+++ b/bin/bbackupquery/BackupQueries.cpp
@@ -1436,6 +1436,8 @@ void BackupQueries::Compare(const std::string &rStoreDir,
void BackupQueries::Compare(int64_t DirID, const std::string &rStoreDir,
const std::string &rLocalDir, BoxBackupCompareParams &rParams)
{
+ rParams.NotifyDirComparing(rLocalDir, rStoreDir);
+
// Get info on the local directory
struct stat st;
if(::lstat(rLocalDir.c_str(), &st) != 0)
@@ -1622,6 +1624,8 @@ void BackupQueries::Compare(int64_t DirID, const std::string &rStoreDir,
std::string localPath(MakeFullPath(rLocalDir, fileName));
std::string storePath(rStoreDir + "/" + fileName);
+ rParams.NotifyFileComparing(localPath, storePath);
+
// Does the file exist locally?
string_set_iter_t local(localFiles.find(fileName));
if(local == localFiles.end())
@@ -1631,7 +1635,7 @@ void BackupQueries::Compare(int64_t DirID, const std::string &rStoreDir,
storePath);
}
else
- {
+ {
int64_t fileSize = 0;
struct stat st;