Changeset 882
- Timestamp:
- 31/08/2006 23:22:35 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
box/chris/merge/lib/backupstore/BackupStoreCheck.cpp
r710 r882 329 329 StoreStructure::MakeObjectFilename(StartID, mStoreRoot, mDiscSetNumber, dirName, false /* don't make sure the dir exists */); 330 330 // Check expectations 331 ASSERT(dirName.size() > 4 && 332 dirName[dirName.size() - 4] == DIRECTORY_SEPARATOR_ASCHAR); 331 ASSERT(dirName.size() > 4 && dirName[dirName.size() - 4] == '/'); 333 332 // Remove the filename from it 334 333 dirName.resize(dirName.size() - 4); // four chars for "/o00" … … 379 378 { 380 379 // 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":""); 384 381 ++mNumberErrorsFound; 385 382 if(mFixErrors) … … 470 467 471 468 // Add to usage counts 472 int64_t s = file->GetDiscUsageInBlocks(); 473 mBlocksUsed += s; 469 mBlocksUsed += size; 474 470 if(!isFile) 475 471 { 476 mBlocksInDirectories += s ;472 mBlocksInDirectories += size; 477 473 } 478 474 }
Note: See TracChangeset
for help on using the changeset viewer.
