Changeset 2315


Ignore:
Timestamp:
03/10/2008 23:43:17 (3 years ago)
Author:
chris
Message:

Log creation of directory records and warn on conflicting records.

File:
1 edited

Legend:

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

    r2302 r2315  
    10791079                        { 
    10801080                                // Use this one 
     1081                                BOX_TRACE("Storing uploaded file ID " << inodeNum << " (" << filename << " in ID map as object " << latestObjectID << " with parent " << mObjectID << " (" << rLocalPath << ")"); 
    10811082                                idMap.AddToMap(inodeNum, latestObjectID, mObjectID /* containing directory */); 
    10821083                        } 
     
    10901091                                { 
    10911092                                        // Found 
     1093                                        if (dirid != mObjectID) 
     1094                                        { 
     1095                                                BOX_WARNING("Found conflicting parent ID for file ID " << inodeNum << " (" << filename << "): expected " << mObjectID << " (" << rLocalPath << ") but found " << dirid << " (same directory used in two different locations?)"); 
     1096                                        } 
     1097 
    10921098                                        ASSERT(dirid == mObjectID); 
     1099 
    10931100                                        // NOTE: If the above assert fails, an inode number has been reused by the OS, 
    10941101                                        // or there is a problem somewhere. If this happened on a short test run, look 
     
    10961103                                        // not indicate anything wrong. 
    10971104                                        // Run the release version for real life use, where this check is not made. 
     1105                                        BOX_TRACE("Storing found file ID " << inodeNum << " (" << filename << " in ID map as object " << latestObjectID << " with parent " << mObjectID << " (" << rLocalPath << ")"); 
    10981106                                        idMap.AddToMap(inodeNum, objid, mObjectID /* containing directory */);                           
    10991107                                } 
Note: See TracChangeset for help on using the changeset viewer.