summaryrefslogtreecommitdiff
path: root/bin/bbackupd/BackupClientDirectoryRecord.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2014-08-15 22:47:14 +0000
committerChris Wilson <chris+github@qwirx.com>2014-08-15 22:47:14 +0000
commit732370e12192a3b66a8b0a3e1f66eed3ebcdc3d3 (patch)
treee3366037c0f7d1de484b8a3ffcd08cf33daf32e0 /bin/bbackupd/BackupClientDirectoryRecord.cpp
parent8cde77d5f4bf894b37197552bd9b035cfcf57a22 (diff)
Whitespace, wrapping, comments and dead code cleanups.
Conflicts: bin/bbackupd/BackupDaemon.cpp bin/bbackupd/BackupDaemon.h test/bbackupd/testbbackupd.cpp
Diffstat (limited to 'bin/bbackupd/BackupClientDirectoryRecord.cpp')
-rw-r--r--bin/bbackupd/BackupClientDirectoryRecord.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/bin/bbackupd/BackupClientDirectoryRecord.cpp b/bin/bbackupd/BackupClientDirectoryRecord.cpp
index e8dddd6f..820cfbaf 100644
--- a/bin/bbackupd/BackupClientDirectoryRecord.cpp
+++ b/bin/bbackupd/BackupClientDirectoryRecord.cpp
@@ -1368,7 +1368,7 @@ bool BackupClientDirectoryRecord::UpdateItems(
// Note: if we have exceeded our storage limit, then
// we should not upload any more data, nor create any
// DirectoryRecord representing data that would have
- // been uploaded. This step will be repeated when
+ // been uploaded. This step will be repeated when
// there is some space available.
bool doCreateDirectoryRecord = true;
@@ -1388,13 +1388,13 @@ bool BackupClientDirectoryRecord::UpdateItems(
else
{
// Yes, creation required!
- // It is known that the it doesn't exist:
+ // It is known that it doesn't exist:
//
// if en == 0 and pDirOnStore == 0, then the
// directory has had an initial sync, and
// hasn't been modified (Really? then why
// are we here? TODO FIXME)
- // so it has definately been created already
+ // so it has definitely been created already
// (so why create it again?)
//
// if en == 0 but pDirOnStore != 0, well... obviously it doesn't exist.
@@ -1515,7 +1515,7 @@ bool BackupClientDirectoryRecord::UpdateItems(
{
// New an object for this
psubDirRecord = new BackupClientDirectoryRecord(subDirObjectID, *d);
-
+
// Store in list
try
{
@@ -1547,7 +1547,7 @@ bool BackupClientDirectoryRecord::UpdateItems(
if(rEntriesLeftOver[l] != 0)
{
BackupStoreDirectory::Entry *en = rEntriesLeftOver[l];
-
+
// These entries can't be deleted immediately, as it would prevent
// renaming and moving of objects working properly. So we add them
// to a list, which is actually deleted at the very end of the session.
@@ -1574,7 +1574,7 @@ bool BackupClientDirectoryRecord::UpdateItems(
filenameClear);
std::string nonVssLocalName = ConvertVssPathToRealPath(localName,
rBackupLocation);
-
+
// Delete this entry -- file or directory?
if((en->GetFlags() & BackupStoreDirectory::Entry::Flags_File) != 0)
{
@@ -1588,7 +1588,7 @@ bool BackupClientDirectoryRecord::UpdateItems(
rdel.AddDirectoryDelete(en->GetObjectID(),
localName);
- // If there's a directory record for it in
+ // If there's a directory record for it in
// the sub directory map, delete it now
BackupStoreFilenameClear dirname(en->GetName());
std::map<std::string, BackupClientDirectoryRecord *>::iterator
@@ -1602,7 +1602,7 @@ bool BackupClientDirectoryRecord::UpdateItems(
BOX_TRACE("Deleted directory record for " <<
nonVssLocalName);
- }
+ }
}
}
}
@@ -1778,7 +1778,7 @@ int64_t BackupClientDirectoryRecord::UploadFile(
rContext.SetNiceMode(false);
- // Get object ID from the result
+ // Get object ID from the result
objID = stored->GetObjectID();
uploadedSize = apStreamToUpload->GetTotalBytesSent();
}