# HG changeset patch # User Timo Sirainen # Date 1301092968 -7200 # Node ID 0d437e2e69492b76cf298b56ecdab294fde0aaa0 # Parent e0f13d7510ef1909d702988c6f8f972154f364da lib-index: Delete dovecot.index.log.2 files after 2 days, not after 30 mins. diff -r e0f13d7510ef -r 0d437e2e6949 src/lib-index/mail-transaction-log-private.h --- a/src/lib-index/mail-transaction-log-private.h Sat Mar 26 00:40:58 2011 +0200 +++ b/src/lib-index/mail-transaction-log-private.h Sat Mar 26 00:42:48 2011 +0200 @@ -17,8 +17,9 @@ #define MAIL_TRANSACTION_LOG_ROTATE_MAX_SIZE (1024*1024) #define MAIL_TRANSACTION_LOG_ROTATE_TIME (60*5) -/* Delete .log.2 files older than this many seconds */ -#define MAIL_TRANSACTION_LOG2_STALE_SECS (60*30) +/* Delete .log.2 files older than this many seconds. Don't be too eager, + older files are useful for QRESYNC and dsync. */ +#define MAIL_TRANSACTION_LOG2_STALE_SECS (60*60*24*2) #define MAIL_TRANSACTION_LOG_FILE_IN_MEMORY(file) ((file)->fd == -1)