Changeset 2861 for box/trunk/lib


Ignore:
Timestamp:
23/02/2011 23:51:29 (15 months ago)
Author:
chris
Message:

Debugging for Sune Molgaard's issue with non-existent files being
detected as unattached and crashing later in CheckUnattachedObjects?().

Location:
box/trunk/lib/backupstore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/backupstore/BackupStoreCheck.cpp

    r2701 r2861  
    465465        int64_t size = -1; 
    466466 
     467        // Debugging for Sune Molgaard's issue with non-existent files being 
     468        // detected as unattached and crashing later in CheckUnattachedObjects() 
     469        if (ObjectID == 0x90c1a) 
     470        { 
     471                BOX_INFO("Trying to open " << BOX_FORMAT_OBJECTID(ObjectID) << 
     472                        " from " << rFilename << " on disc " << mDiscSetNumber); 
     473        } 
     474 
    467475        try 
    468476        { 
     
    523531                return false; 
    524532        } 
    525          
     533 
     534        // Debugging for Sune Molgaard's issue with non-existent files being 
     535        // detected as unattached and crashing later in CheckUnattachedObjects() 
     536        if (ObjectID == 0x90c1a) 
     537        { 
     538                BOX_INFO("Adding ID " << BOX_FORMAT_OBJECTID(ObjectID) << 
     539                        " contained by " << BOX_FORMAT_OBJECTID(containerID) << 
     540                        " with size " << size << " and isFile " << isFile); 
     541        } 
     542 
    526543        // Add to list of IDs known about 
    527544        AddID(ObjectID, containerID, size, isFile); 
  • box/trunk/lib/backupstore/BackupStoreCheck2.cpp

    r2702 r2861  
    158158                                                std::string filename; 
    159159                                                StoreStructure::MakeObjectFilename(pblock->mID[e], mStoreRoot, mDiscSetNumber, filename, false /* don't attempt to make sure the dir exists */); 
     160 
     161                                                // Debugging for Sune Molgaard's issue with non-existent files being 
     162                                                // detected as unattached and crashing later in CheckUnattachedObjects() 
     163                                                if (pblock->mID[e] == 0x90c1a) 
     164                                                { 
     165                                                        BOX_INFO("Trying to open unattached " << 
     166                                                                BOX_FORMAT_OBJECTID(pblock->mID[e]) << 
     167                                                                " from " << filename << " on " << mDiscSetNumber); 
     168                                                } 
     169 
    160170                                                // The easiest way to do this is to verify it again. Not such a bad penalty, because 
    161171                                                // this really shouldn't be done very often. 
Note: See TracChangeset for help on using the changeset viewer.