Mercurial > dovecot > core-2.2
diff src/lib-index/mail-cache-private.h @ 8190:9902de77194e HEAD
Mail cache: If locking failed, the next time try to lock it only once.
Also increased the first timeout to 10 seconds.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 11 Sep 2008 17:10:46 +0300 |
parents | 2db48458d73b |
children | 4a19aea565f7 |
line wrap: on
line diff
--- a/src/lib-index/mail-cache-private.h Thu Sep 11 17:06:29 2008 +0300 +++ b/src/lib-index/mail-cache-private.h Thu Sep 11 17:10:46 2008 +0300 @@ -36,7 +36,7 @@ /* 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 2 +#define MAIL_CACHE_LOCK_TIMEOUT 10 #define MAIL_CACHE_LOCK_CHANGE_TIMEOUT 300 #define CACHE_RECORD(cache, offset) \ @@ -171,6 +171,7 @@ unsigned int opened:1; unsigned int locked:1; + unsigned int last_lock_failed:1; unsigned int hdr_modified:1; unsigned int field_header_write_pending:1; unsigned int compressing:1;