Changeset 882


Ignore:
Timestamp:
31/08/2006 23:22:35 (5 years ago)
Author:
chris
Message:

Revert to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/merge/lib/backupstore/BackupStoreCheck.cpp

    r710 r882  
    329329        StoreStructure::MakeObjectFilename(StartID, mStoreRoot, mDiscSetNumber, dirName, false /* don't make sure the dir exists */); 
    330330        // Check expectations 
    331         ASSERT(dirName.size() > 4 &&  
    332                 dirName[dirName.size() - 4] == DIRECTORY_SEPARATOR_ASCHAR); 
     331        ASSERT(dirName.size() > 4 && dirName[dirName.size() - 4] == '/'); 
    333332        // Remove the filename from it 
    334333        dirName.resize(dirName.size() - 4); // four chars for "/o00" 
     
    379378                { 
    380379                        // Unexpected or bad file, delete it 
    381                         ::printf("Spurious file %s" DIRECTORY_SEPARATOR "%s " 
    382                                 "found%s\n", dirName.c_str(), (*i).c_str(),  
    383                                 mFixErrors?", deleting":""); 
     380                        ::printf("Spurious file %s/%s found%s\n", dirName.c_str(), (*i).c_str(), mFixErrors?", deleting":""); 
    384381                        ++mNumberErrorsFound; 
    385382                        if(mFixErrors) 
     
    470467                 
    471468                // Add to usage counts 
    472                 int64_t s = file->GetDiscUsageInBlocks(); 
    473                 mBlocksUsed += s; 
     469                mBlocksUsed += size; 
    474470                if(!isFile) 
    475471                { 
    476                         mBlocksInDirectories += s; 
     472                        mBlocksInDirectories += size; 
    477473                } 
    478474        } 
Note: See TracChangeset for help on using the changeset viewer.