]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
maildir: Use MAIL_TRANSACTION_LOG_LOCK_WARN_SECS as threshold for logging a "long...
authorTimo Sirainen <tss@iki.fi>
Thu, 9 Oct 2014 15:19:11 +0000 (18:19 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 9 Oct 2014 15:19:11 +0000 (18:19 +0300)
This is because the index syncing keeps the log locked, and other processes
trying to lock the log will start logging warnings as well.

src/lib-storage/index/maildir/maildir-sync.h

index 5229ac1b2fdc9e3b762d6e00192b01e3d608b5c6..5ec0ee48e4dca75dd94378712c6d8ccbabb7c1d1 100644 (file)
@@ -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;