Changeset 2706 for box/trunk/bin/bbstored/HousekeepStoreAccount.cpp
- Timestamp:
- 27/08/2010 10:21:17 (21 months ago)
- File:
-
- 1 edited
-
box/trunk/bin/bbstored/HousekeepStoreAccount.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbstored/HousekeepStoreAccount.cpp
r2647 r2706 116 116 std::auto_ptr<BackupStoreInfo> info(BackupStoreInfo::Load(mAccountID, 117 117 mStoreRoot, mStoreDiscSet, false /* Read/Write */)); 118 std::auto_ptr<BackupStoreInfo> pOldInfo( 119 BackupStoreInfo::Load(mAccountID, mStoreRoot, mStoreDiscSet, 120 true /* Read Only */)); 118 121 119 122 // Calculate how much should be deleted … … 149 152 info->ChangeBlocksInOldFiles(mBlocksInOldFilesDelta); 150 153 info->ChangeBlocksInDeletedFiles(mBlocksInDeletedFilesDelta); 151 154 152 155 // Save the store info back 156 info->ReportChangesTo(*pOldInfo); 153 157 info->Save(); 154 158 } … … 198 202 mBlocksInOldFiles, mBlocksInDeletedFiles, 199 203 mBlocksInDirectories + mBlocksInDirectoriesDelta); 204 205 info->ReportChangesTo(*pOldInfo); 200 206 info->Save(); 201 207 } … … 344 350 345 351 // Save the store info back 352 info->ReportChangesTo(*pOldInfo); 346 353 info->Save(); 347 354
Note: See TracChangeset
for help on using the changeset viewer.
