Ignore:
Timestamp:
09/10/2007 00:23:59 (4 years ago)
Author:
chris
Message:

Allow configuration of the time to delete redundant store locations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/BackupDaemon.cpp

    r1862 r1863  
    877877                                                conf.GetKeyValueInt( 
    878878                                                        "MaxFileTimeInFuture")); 
     879                                mDeleteRedundantLocationsAfter = 
     880                                        conf.GetKeyValueInt( 
     881                                                "DeleteRedundantLocationsAfter"); 
    879882 
    880883                                clientContext.SetMaximumDiffingTime(maximumDiffingTime); 
     
    16601663                i != rLocationsConf.mSubConfigurations.end(); ++i) 
    16611664        { 
    1662                 BOX_TRACE("new location"); 
     1665                BOX_TRACE("new location: " << i->first); 
    16631666                // Create a record for it 
    16641667                Location *ploc = new Location; 
     
    18221825                catch (std::exception &e) 
    18231826                { 
    1824                         delete ploc; 
    1825                         ploc = 0; 
    18261827                        BOX_ERROR("Failed to configure location '" 
    18271828                                << ploc->mName << "' path '" 
    18281829                                << ploc->mPath << "': " << e.what() << 
    18291830                                ": please check for previous errors"); 
     1831                        delete ploc; 
     1832                        ploc = 0; 
    18301833                        throw; 
    18311834                } 
     
    18581861                { 
    18591862                        mDeleteUnusedRootDirEntriesAfter = now +  
    1860                                 SecondsToBoxTime( 
    1861                                 BACKUP_DELETE_UNUSED_ROOT_ENTRIES_AFTER); 
     1863                                SecondsToBoxTime(mDeleteRedundantLocationsAfter); 
    18621864                } 
    18631865 
Note: See TracChangeset for help on using the changeset viewer.