changeset 12913:0d437e2e6949

lib-index: Delete dovecot.index.log.2 files after 2 days, not after 30 mins.
author Timo Sirainen <tss@iki.fi>
date Sat, 26 Mar 2011 00:42:48 +0200
parents e0f13d7510ef
children 746b4e9e7015
files src/lib-index/mail-transaction-log-private.h
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)