Ignore:
Timestamp:
27/08/2010 10:21:17 (21 months ago)
Author:
chris
Message:

Report changes to object and block counts that are made by housekeeping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbstored/HousekeepStoreAccount.cpp

    r2647 r2706  
    116116        std::auto_ptr<BackupStoreInfo> info(BackupStoreInfo::Load(mAccountID, 
    117117                mStoreRoot, mStoreDiscSet, false /* Read/Write */)); 
     118        std::auto_ptr<BackupStoreInfo> pOldInfo( 
     119                BackupStoreInfo::Load(mAccountID, mStoreRoot, mStoreDiscSet, 
     120                        true /* Read Only */)); 
    118121 
    119122        // Calculate how much should be deleted 
     
    149152                        info->ChangeBlocksInOldFiles(mBlocksInOldFilesDelta); 
    150153                        info->ChangeBlocksInDeletedFiles(mBlocksInDeletedFilesDelta); 
    151                          
     154 
    152155                        // Save the store info back 
     156                        info->ReportChangesTo(*pOldInfo); 
    153157                        info->Save(); 
    154158                } 
     
    198202                                mBlocksInOldFiles, mBlocksInDeletedFiles, 
    199203                                mBlocksInDirectories + mBlocksInDirectoriesDelta); 
     204 
     205                        info->ReportChangesTo(*pOldInfo); 
    200206                        info->Save(); 
    201207                } 
     
    344350         
    345351        // Save the store info back 
     352        info->ReportChangesTo(*pOldInfo); 
    346353        info->Save(); 
    347354         
Note: See TracChangeset for help on using the changeset viewer.