Changeset 1863
- Timestamp:
- 09/10/2007 00:23:59 (15 months ago)
- Location:
- box/trunk
- Files:
-
- 4 modified
-
bin/bbackupd/BackupDaemon.cpp (modified) (4 diffs)
-
bin/bbackupd/BackupDaemon.h (modified) (1 diff)
-
lib/backupclient/BackupDaemonConfigVerify.cpp (modified) (1 diff)
-
lib/backupclient/BackupStoreConstants.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbackupd/BackupDaemon.cpp
r1862 r1863 877 877 conf.GetKeyValueInt( 878 878 "MaxFileTimeInFuture")); 879 mDeleteRedundantLocationsAfter = 880 conf.GetKeyValueInt( 881 "DeleteRedundantLocationsAfter"); 879 882 880 883 clientContext.SetMaximumDiffingTime(maximumDiffingTime); … … 1660 1663 i != rLocationsConf.mSubConfigurations.end(); ++i) 1661 1664 { 1662 BOX_TRACE("new location ");1665 BOX_TRACE("new location: " << i->first); 1663 1666 // Create a record for it 1664 1667 Location *ploc = new Location; … … 1822 1825 catch (std::exception &e) 1823 1826 { 1824 delete ploc;1825 ploc = 0;1826 1827 BOX_ERROR("Failed to configure location '" 1827 1828 << ploc->mName << "' path '" 1828 1829 << ploc->mPath << "': " << e.what() << 1829 1830 ": please check for previous errors"); 1831 delete ploc; 1832 ploc = 0; 1830 1833 throw; 1831 1834 } … … 1858 1861 { 1859 1862 mDeleteUnusedRootDirEntriesAfter = now + 1860 SecondsToBoxTime( 1861 BACKUP_DELETE_UNUSED_ROOT_ENTRIES_AFTER); 1863 SecondsToBoxTime(mDeleteRedundantLocationsAfter); 1862 1864 } 1863 1865 -
box/trunk/bin/bbackupd/BackupDaemon.h
r1804 r1863 159 159 std::vector<BackupClientInodeToIDMap *> mNewIDMaps; 160 160 161 int mDeleteRedundantLocationsAfter; 162 161 163 // For the command socket 162 164 class CommandSocketInfo -
box/trunk/lib/backupclient/BackupDaemonConfigVerify.cpp
r1234 r1863 78 78 79 79 {"MaximumDiffingTime", 0, ConfigTest_IsInt, 0}, 80 {"DeleteRedundantLocationsAfter", "172800", ConfigTest_IsInt, 0}, 80 81 81 82 {"FileTrackingSizeThreshold", 0, ConfigTest_Exists | ConfigTest_IsInt, 0}, -
box/trunk/lib/backupclient/BackupStoreConstants.h
r217 r1863 41 41 #define BACKUP_FILE_DIFF_MAX_BLOCK_FIND_MULTIPLE 4096 42 42 43 // How many seconds to wait before deleting unused root directory entries?44 #ifndef NDEBUG45 // Debug: 30 seconds (easier to test)46 #define BACKUP_DELETE_UNUSED_ROOT_ENTRIES_AFTER 3047 #else48 // Release: 2 days (plenty of time for sysadmins to notice, or change their mind)49 #define BACKUP_DELETE_UNUSED_ROOT_ENTRIES_AFTER 17280050 #endif51 52 43 #endif // BACKUPSTORECONSTANTS__H 53 44
