Ignore:
Timestamp:
29/03/2009 14:51:24 (3 years ago)
Author:
chris
Message:

Change type of BackupStoreFilename? not to derive from std::string, so
it can't accidentally be used as one.

Fix use of encrypted filename in deleted file message, thanks to Kenny
Millington for reporting.

File:
1 edited

Legend:

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

    r2176 r2481  
    350350 
    351351                // map to count the distance from the mark 
    352                 std::map<std::pair<BackupStoreFilename, int32_t>, int32_t> markVersionAges; 
     352                typedef std::pair<std::string, int32_t> version_t; 
     353                std::map<version_t, int32_t> markVersionAges; 
    353354                        // map of pair (filename, mark number) -> version age 
    354355 
     
    368369                        // Work out ages of this version from the last mark 
    369370                        int32_t enVersionAge = 0; 
    370                         std::map<std::pair<BackupStoreFilename, int32_t>, int32_t>::iterator enVersionAgeI(markVersionAges.find(std::pair<BackupStoreFilename, int32_t>(en->GetName(), en->GetMarkNumber()))); 
     371                        std::map<version_t, int32_t>::iterator enVersionAgeI( 
     372                                markVersionAges.find( 
     373                                        version_t(en->GetName().GetEncodedFilename(), 
     374                                                en->GetMarkNumber()))); 
    371375                        if(enVersionAgeI != markVersionAges.end()) 
    372376                        { 
     
    376380                        else 
    377381                        { 
    378                                 markVersionAges[std::pair<BackupStoreFilename, int32_t>(en->GetName(), en->GetMarkNumber())] = enVersionAge; 
     382                                markVersionAges[version_t(en->GetName().GetEncodedFilename(), en->GetMarkNumber())] = enVersionAge; 
    379383                        } 
    380384                        // enVersionAge is now the age of this version. 
Note: See TracChangeset for help on using the changeset viewer.