Mercurial > dovecot > core-2.2
diff src/lib-index/mail-transaction-log-private.h @ 5283:8f9af66ee313 HEAD
If transaction log grows larger than 1MB, rotate it even if it was created
less than 5 minutes ago.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 11 Mar 2007 18:40:58 +0200 |
parents | f1d77064884c |
children | d28185a3131a |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-private.h Sun Mar 11 18:30:05 2007 +0200 +++ b/src/lib-index/mail-transaction-log-private.h Sun Mar 11 18:40:58 2007 +0200 @@ -4,7 +4,10 @@ #include "file-dotlock.h" #include "mail-transaction-log.h" -#define MAIL_TRANSACTION_LOG_ROTATE_SIZE (1024*128) +/* Rotate when log is older than ROTATE_TIME and larger than MIN_SIZE */ +#define MAIL_TRANSACTION_LOG_ROTATE_MIN_SIZE (1024*128) +/* If log is larger than MAX_SIZE, rotate regardless of the time */ +#define MAIL_TRANSACTION_LOG_ROTATE_MAX_SIZE (1024*1024) #define MAIL_TRANSACTION_LOG_ROTATE_TIME (60*5) #define MAIL_TRANSACTION_LOG_FILE_IN_MEMORY(file) ((file)->fd == -1)