[Box Backup-commit] COMMIT r1192 - box/chris/merge/bin/bbackupd
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Sun Dec 3 10:41:01 GMT 2006
Author: chris
Date: 2006-12-03 10:41:01 +0000 (Sun, 03 Dec 2006)
New Revision: 1192
Modified:
box/chris/merge/bin/bbackupd/BackupClientDirectoryRecord.cpp
Log:
Send keepalives when needed while scanning large directories (refs #3,
refs #9)
Modified: box/chris/merge/bin/bbackupd/BackupClientDirectoryRecord.cpp
===================================================================
--- box/chris/merge/bin/bbackupd/BackupClientDirectoryRecord.cpp 2006-12-03 10:40:26 UTC (rev 1191)
+++ box/chris/merge/bin/bbackupd/BackupClientDirectoryRecord.cpp 2006-12-03 10:41:01 UTC (rev 1192)
@@ -223,6 +223,8 @@
std::string filename;
while((en = ::readdir(dirHandle)) != 0)
{
+ rParams.mrContext.DoKeepAlive();
+
// Don't need to use LinuxWorkaround_FinishDirentStruct(en, rLocalPath.c_str());
// on Linux, as a stat is performed to get all this info
@@ -574,6 +576,9 @@
for(std::vector<std::string>::const_iterator f = rFiles.begin();
f != rFiles.end(); ++f)
{
+ // Send keep-alive message if needed
+ rParams.mrContext.DoKeepAlive();
+
// Filename of this file
std::string filename(MakeFullPath(rLocalPath, *f));
@@ -921,6 +926,9 @@
for(std::vector<std::string>::const_iterator d = rDirs.begin();
d != rDirs.end(); ++d)
{
+ // Send keep-alive message if needed
+ rParams.mrContext.DoKeepAlive();
+
// Get the local filename
std::string dirname(MakeFullPath(rLocalPath, *d));
More information about the Boxbackup-commit
mailing list