dovecot-1.1: Mail cache file: Changed lock timeout to just 2 sec...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Sep 9 18:34:49 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/e3c5acf92b53
changeset: 7870:e3c5acf92b53
user: Timo Sirainen <tss at iki.fi>
date: Tue Sep 09 18:34:44 2008 +0300
description:
Mail cache file: Changed lock timeout to just 2 seconds.
It's better to not update cache than waste a lot of time waiting for a lock.
Also increased staleness timeout to 5 minutes - it's safer that way and with
the reduced lock timeout doesn't matter as much.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-index/mail-cache-private.h | 4 ++--
diffs (14 lines):
diff -r 898e3810c014 -r e3c5acf92b53 src/lib-index/mail-cache-private.h
--- a/src/lib-index/mail-cache-private.h Tue Sep 09 18:30:39 2008 +0300
+++ b/src/lib-index/mail-cache-private.h Tue Sep 09 18:34:44 2008 +0300
@@ -36,8 +36,8 @@
/* When allocating space for transactions, don't use blocks larger than this. */
#define MAIL_CACHE_MAX_RESERVED_BLOCK_SIZE (1024*512)
-#define MAIL_CACHE_LOCK_TIMEOUT 120
-#define MAIL_CACHE_LOCK_CHANGE_TIMEOUT 60
+#define MAIL_CACHE_LOCK_TIMEOUT 2
+#define MAIL_CACHE_LOCK_CHANGE_TIMEOUT 300
#define CACHE_RECORD(cache, offset) \
((const struct mail_cache_record *) \
More information about the dovecot-cvs
mailing list