[Box Backup-commit] COMMIT r3176 - box/trunk/lib/backupstore

subversion at boxbackup.org subversion at boxbackup.org
Thu Aug 22 01:24:25 BST 2013


Author: chris
Date: 2013-08-22 01:24:24 +0100 (Thu, 22 Aug 2013)
New Revision: 3176

Modified:
   box/trunk/lib/backupstore/BackupCommands.cpp
Log:
Improve variable names and comments.

Makes the source code more readable.

Modified: box/trunk/lib/backupstore/BackupCommands.cpp
===================================================================
--- box/trunk/lib/backupstore/BackupCommands.cpp	2013-08-22 00:24:19 UTC (rev 3175)
+++ box/trunk/lib/backupstore/BackupCommands.cpp	2013-08-22 00:24:24 UTC (rev 3176)
@@ -249,13 +249,13 @@
 	}
 	
 	// A stream follows, which contains the file
-	std::auto_ptr<IOStream> dirstream(rProtocol.ReceiveStream());
+	std::auto_ptr<IOStream> filestream(rProtocol.ReceiveStream());
 	
 	// Ask the context to store it
 	int64_t id = 0;
 	try
 	{
-		id = rContext.AddFile(*dirstream, mDirectoryObjectID,
+		id = rContext.AddFile(*filestream, mDirectoryObjectID,
 			mModificationTime, mAttributesHash, mDiffFromFileID,
 			mFilename,
 			true /* mark files with same name as old versions */);
@@ -276,7 +276,7 @@
 		}
 	}
 	
-	// Tell the caller what the file was
+	// Tell the caller what the file ID was
 	return std::auto_ptr<BackupProtocolMessage>(new BackupProtocolSuccess(id));
 }
 




More information about the Boxbackup-commit mailing list