dovecot-2.0: lib-index: Delete dovecot.index.log.2 files after 2...

dovecot at dovecot.org dovecot at dovecot.org
Sat Mar 26 00:42:52 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/0d437e2e6949
changeset: 12706:0d437e2e6949
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Mar 26 00:42:48 2011 +0200
description:
lib-index: Delete dovecot.index.log.2 files after 2 days, not after 30 mins.

diffstat:

 src/lib-index/mail-transaction-log-private.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (15 lines):

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)
 


More information about the dovecot-cvs mailing list