dovecot: Removed debug #defines and changed log rotation size de...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 27 22:37:22 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/9b4987348cf6
changeset: 5813:9b4987348cf6
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 27 22:37:17 2007 +0300
description:
Removed debug #defines and changed log rotation size defaults.

diffstat:

1 file changed, 1 insertion(+), 11 deletions(-)
src/lib-index/mail-transaction-log-private.h |   12 +-----------

diffs (28 lines):

diff -r 71176467310e -r 9b4987348cf6 src/lib-index/mail-transaction-log-private.h
--- 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;


More information about the dovecot-cvs mailing list