diff src/lib-index/mail-transaction-log-private.h @ 5881:7b7ce27f2b13 HEAD

Delete over 30 minutes old .log.2 files when opening indexes.
author Timo Sirainen <tss@iki.fi>
date Tue, 03 Jul 2007 04:22:40 +0300
parents a9df50952600
children 461ae76c84da
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-private.h	Tue Jul 03 04:11:41 2007 +0300
+++ b/src/lib-index/mail-transaction-log-private.h	Tue Jul 03 04:22:40 2007 +0300
@@ -10,6 +10,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)
+
 #define MAIL_TRANSACTION_LOG_FILE_IN_MEMORY(file) ((file)->fd == -1)
 
 struct mail_transaction_log_file {