dovecot-2.2: maildir: Use MAIL_TRANSACTION_LOG_LOCK_WARN_SECS as...
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/1c3dcade6f02
changeset: 17924:1c3dcade6f02
user: Timo Sirainen <tss at iki.fi>
date: Thu Oct 09 18:19:11 2014 +0300
description:
maildir: Use MAIL_TRANSACTION_LOG_LOCK_WARN_SECS as threshold for logging a "long sync" warning.
This is because the index syncing keeps the log locked, and other processes
trying to lock the log will start logging warnings as well.
diffstat:
src/lib-storage/index/maildir/maildir-sync.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 568f817804b3 -r 1c3dcade6f02 src/lib-storage/index/maildir/maildir-sync.h
--- a/src/lib-storage/index/maildir/maildir-sync.h Thu Oct 09 18:17:26 2014 +0300
+++ b/src/lib-storage/index/maildir/maildir-sync.h Thu Oct 09 18:19:11 2014 +0300
@@ -12,7 +12,7 @@
to see if we need to touch the uidlist lock. */
#define MAILDIR_SLOW_CHECK_COUNT 10000
/* If syncing takes longer than this, log a warning. */
-#define MAILDIR_SYNC_TIME_WARN_SECS 60
+#define MAILDIR_SYNC_TIME_WARN_SECS MAIL_TRANSACTION_LOG_LOCK_WARN_SECS
struct maildir_mailbox;
struct maildir_sync_context;
More information about the dovecot-cvs
mailing list