Mercurial > dovecot > original-hg > dovecot-1.0
changeset 5500:500a21b449e9 branch_1_0
When doing a forced sync, we're not necessarily locked. If it takes a while,
don't try to touch dovecot-uidlist and assert-crash.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 28 Dec 2007 20:04:44 +0200 |
parents | 0a4f86976f50 |
children | 1a87f8495e07 |
files | src/lib-storage/index/maildir/maildir-sync.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-sync.c Fri Dec 28 18:39:51 2007 +0200 +++ b/src/lib-storage/index/maildir/maildir-sync.c Fri Dec 28 20:04:44 2007 +0200 @@ -517,7 +517,7 @@ } now = time(NULL); - if (now - ctx->last_touch > MAILDIR_LOCK_TOUCH_SECS) { + if (now - ctx->last_touch > MAILDIR_LOCK_TOUCH_SECS && ctx->locked) { (void)maildir_uidlist_lock_touch(ctx->mbox->uidlist); ctx->last_touch = now; }