Changeset 3031 for box/trunk


Ignore:
Timestamp:
25/10/2011 23:27:56 (7 months ago)
Author:
chris
Message:

Fix logging of real (non-VSS) paths in UploadFile?*.

Location:
box/trunk/bin/bbackupd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/BackupClientDirectoryRecord.cpp

    r3029 r3031  
    259259                try 
    260260                { 
    261                         rNotifier.NotifyScanDirectory(this, 
    262                                 ConvertVssPathToRealPath(rLocalPath, rBackupLocation)); 
     261                        std::string nonVssDirPath = ConvertVssPathToRealPath(rLocalPath, 
     262                                        rBackupLocation); 
     263                        rNotifier.NotifyScanDirectory(this, nonVssDirPath); 
    263264 
    264265                        dirHandle = ::opendir(rLocalPath.c_str()); 
     
    270271                                { 
    271272                                        rNotifier.NotifyDirListFailed(this, 
    272                                                 ConvertVssPathToRealPath(rLocalPath, rBackupLocation), 
     273                                                nonVssDirPath, 
    273274                                                "Access denied"); 
    274275                                } 
     
    276277                                { 
    277278                                        rNotifier.NotifyDirListFailed(this,  
    278                                                 ConvertVssPathToRealPath(rLocalPath, rBackupLocation), 
     279                                                nonVssDirPath, 
    279280                                                strerror(errno)); 
    280281                                } 
     
    282283                                // Report the error (logs and eventual email 
    283284                                // to administrator) 
    284                                 SetErrorWhenReadingFilesystemObject(rParams, rLocalPath); 
     285                                SetErrorWhenReadingFilesystemObject(rParams, 
     286                                        nonVssDirPath); 
    285287                                // Ignore this directory for now. 
    286288                                return; 
     
    10671069                                { 
    10681070                                        latestObjectID = UploadFile(rParams, 
    1069                                                 filename, storeFilename, 
     1071                                                filename, 
     1072                                                nonVssFilePath, 
     1073                                                storeFilename, 
    10701074                                                fileSize, modTime, 
    10711075                                                attributesHash, 
     
    16091613        BackupClientDirectoryRecord::SyncParams &rParams, 
    16101614        const std::string &rFilename, 
     1615        const std::string &rNonVssFilePath, 
    16111616        const BackupStoreFilename &rStoreFilename, 
    16121617        int64_t FileSize, 
     
    16421647                        { 
    16431648                                // Found an old version 
    1644                                 rNotifier.NotifyFileUploadingPatch(this,  
    1645                                         rFilename); 
     1649                                rNotifier.NotifyFileUploadingPatch(this, 
     1650                                        rNonVssFilePath); 
    16461651 
    16471652                                // Get the index 
     
    17021707                { 
    17031708                        // below threshold or nothing to diff from, so upload whole 
    1704                         rNotifier.NotifyFileUploading(this, rFilename); 
     1709                        rNotifier.NotifyFileUploading(this, rNonVssFilePath); 
    17051710                         
    17061711                        // Prepare to upload, getting a stream which will encode the file as we go along 
     
    17631768                                } 
    17641769                                rNotifier.NotifyFileUploadServerError(this, 
    1765                                         rFilename, type, subtype); 
     1770                                        rNonVssFilePath, type, subtype); 
    17661771                        } 
    17671772                } 
     
    17711776        } 
    17721777 
    1773         rNotifier.NotifyFileUploaded(this, rFilename, FileSize, uploadedSize); 
     1778        rNotifier.NotifyFileUploaded(this, rNonVssFilePath, FileSize, 
     1779                uploadedSize); 
    17741780 
    17751781        // Return the new object ID of this file 
  • box/trunk/bin/bbackupd/BackupClientDirectoryRecord.h

    r2995 r3031  
    157157        int64_t UploadFile(SyncParams &rParams, 
    158158                const std::string &rFilename, 
     159                const std::string &rNonVssFilePath, 
    159160                const BackupStoreFilename &rStoreFilename, 
    160161                int64_t FileSize, box_time_t ModificationTime, 
Note: See TracChangeset for help on using the changeset viewer.