Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/index/maildir/maildir-sync.c @ 7046:e74a1d1dca07 HEAD
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:43 +0200 |
parents | 414c9d631a81 |
children | 048325df1ec4 |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-sync.c Fri Dec 28 19:14:36 2007 +0200 +++ b/src/lib-storage/index/maildir/maildir-sync.c Fri Dec 28 20:04:43 2007 +0200 @@ -230,7 +230,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; }