Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5813:9b4987348cf6 HEAD
Removed debug #defines and changed log rotation size defaults.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 27 Jun 2007 22:37:17 +0300 |
parents | 71176467310e |
children | 498ef9bc33f1 |
files | src/lib-index/mail-transaction-log-private.h |
diffstat | 1 files changed, 1 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-private.h Wed Jun 27 21:22:22 2007 +0300 +++ b/src/lib-index/mail-transaction-log-private.h Wed Jun 27 22:37:17 2007 +0300 @@ -4,23 +4,13 @@ #include "file-dotlock.h" #include "mail-transaction-log.h" -#if 0 // FIXME /* Rotate when log is older than ROTATE_TIME and larger than MIN_SIZE */ -#define MAIL_TRANSACTION_LOG_ROTATE_MIN_SIZE (1024*4) -/* If log is larger than MAX_SIZE, rotate regardless of the time */ -#define MAIL_TRANSACTION_LOG_ROTATE_MAX_SIZE (1024*16) -#define MAIL_TRANSACTION_LOG_ROTATE_TIME (30) - -#define MAIL_TRANSACTION_LOG_FILE_IN_MEMORY(file) ((file)->fd == -1) -#else -/* Rotate when log is older than ROTATE_TIME and larger than MIN_SIZE */ -#define MAIL_TRANSACTION_LOG_ROTATE_MIN_SIZE (1024*256) +#define MAIL_TRANSACTION_LOG_ROTATE_MIN_SIZE (1024*32) /* 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) -#endif struct mail_transaction_log_file { struct mail_transaction_log *log;