diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-10-08 23:23:59 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-10-08 23:23:59 +0000 |
commit | c127d97acf80136c2c4122d7c4bf5e3f28853272 (patch) | |
tree | f9f7b2bf8081f4f2bbce4132fcf8b640af9eca78 /lib/backupclient | |
parent | 62a12cbab2e91bf9eadada6df9150772797426bb (diff) |
Allow configuration of the time to delete redundant store locations.
Diffstat (limited to 'lib/backupclient')
-rw-r--r-- | lib/backupclient/BackupDaemonConfigVerify.cpp | 1 | ||||
-rw-r--r-- | lib/backupclient/BackupStoreConstants.h | 9 |
2 files changed, 1 insertions, 9 deletions
diff --git a/lib/backupclient/BackupDaemonConfigVerify.cpp b/lib/backupclient/BackupDaemonConfigVerify.cpp index 9000ec6d..61033b5b 100644 --- a/lib/backupclient/BackupDaemonConfigVerify.cpp +++ b/lib/backupclient/BackupDaemonConfigVerify.cpp @@ -77,6 +77,7 @@ static const ConfigurationVerifyKey verifyrootkeys[] = // return "now" if it's allowed, or a number of seconds if it's not {"MaximumDiffingTime", 0, ConfigTest_IsInt, 0}, + {"DeleteRedundantLocationsAfter", "172800", ConfigTest_IsInt, 0}, {"FileTrackingSizeThreshold", 0, ConfigTest_Exists | ConfigTest_IsInt, 0}, {"DiffingUploadSizeThreshold", 0, ConfigTest_Exists | ConfigTest_IsInt, 0}, diff --git a/lib/backupclient/BackupStoreConstants.h b/lib/backupclient/BackupStoreConstants.h index 907072ea..2c33fd8f 100644 --- a/lib/backupclient/BackupStoreConstants.h +++ b/lib/backupclient/BackupStoreConstants.h @@ -40,14 +40,5 @@ // This is a multiple of the number of blocks in the diff from file. #define BACKUP_FILE_DIFF_MAX_BLOCK_FIND_MULTIPLE 4096 -// How many seconds to wait before deleting unused root directory entries? -#ifndef NDEBUG - // Debug: 30 seconds (easier to test) - #define BACKUP_DELETE_UNUSED_ROOT_ENTRIES_AFTER 30 -#else - // Release: 2 days (plenty of time for sysadmins to notice, or change their mind) - #define BACKUP_DELETE_UNUSED_ROOT_ENTRIES_AFTER 172800 -#endif - #endif // BACKUPSTORECONSTANTS__H |