Changeset 2835 for box/trunk/bin


Ignore:
Timestamp:
09/01/2011 01:56:36 (17 months ago)
Author:
chris
Message:

Fix incorrect generation of temporary file name for applying
patches while restoring old versions of files, many thanks to
Matto Marjanovic for debugging this issue and submitting a
patch!

File:
1 edited

Legend:

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

    r2282 r2835  
    389389                         
    390390                        // Choose a temporary filename for the result of the combination 
    391                         std::ostringstream fs(rContext.GetStoreRoot()); 
    392                         fs << ".recombinetemp."; 
    393                         fs << p; 
    394                         std::string tempFn(fs.str()); 
    395                         tempFn = RaidFileController::DiscSetPathToFileSystemPath(rContext.GetStoreDiscSet(), tempFn, p + 16); 
     391                        std::ostringstream fs; 
     392                        fs << rContext.GetStoreRoot() << ".recombinetemp." << p; 
     393                        std::string tempFn =  
     394                                RaidFileController::DiscSetPathToFileSystemPath( 
     395                                        rContext.GetStoreDiscSet(), fs.str(), 
     396                                        p + 16); 
    396397                         
    397398                        // Open the temporary file 
Note: See TracChangeset for help on using the changeset viewer.