dovecot-2.2: lib-index: Moved MAIL_TRANSACTION_LOG_LOCK_WARN_SEC...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Oct 9 15:19:47 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/568f817804b3
changeset: 17923:568f817804b3
user: Timo Sirainen <tss at iki.fi>
date: Thu Oct 09 18:17:26 2014 +0300
description:
lib-index: Moved MAIL_TRANSACTION_LOG_LOCK_WARN_SECS as part of public API.
diffstat:
src/lib-index/mail-index.h | 4 ++++
src/lib-index/mail-transaction-log-private.h | 1 -
2 files changed, 4 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 00115d4930d4 -r 568f817804b3 src/lib-index/mail-index.h
--- a/src/lib-index/mail-index.h Thu Oct 09 18:14:43 2014 +0300
+++ b/src/lib-index/mail-index.h Thu Oct 09 18:17:26 2014 +0300
@@ -12,6 +12,10 @@
#define MAIL_INDEX_HEADER_MIN_SIZE 120
+/* Log a warning when transaction log has been locked for this many seconds.
+ This lock is held also between mail_index_sync_begin()..commit(). */
+#define MAIL_TRANSACTION_LOG_LOCK_WARN_SECS 30
+
enum mail_index_open_flags {
/* Create index if it doesn't exist */
MAIL_INDEX_OPEN_FLAG_CREATE = 0x01,
diff -r 00115d4930d4 -r 568f817804b3 src/lib-index/mail-transaction-log-private.h
--- a/src/lib-index/mail-transaction-log-private.h Thu Oct 09 18:14:43 2014 +0300
+++ b/src/lib-index/mail-transaction-log-private.h Thu Oct 09 18:17:26 2014 +0300
@@ -10,7 +10,6 @@
mails. */
#define MAIL_TRANSACTION_LOG_LOCK_TIMEOUT (3*60)
#define MAIL_TRANSACTION_LOG_LOCK_CHANGE_TIMEOUT (3*60)
-#define MAIL_TRANSACTION_LOG_LOCK_WARN_SECS 30
/* Rotate when log is older than ROTATE_TIME and larger than MIN_SIZE */
#define MAIL_TRANSACTION_LOG_ROTATE_MIN_SIZE (1024*32)
More information about the dovecot-cvs
mailing list