Mercurial > dovecot > original-hg > dovecot-1.2
changeset 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 | ae0556fb268d |
children | 3fe934d0843a |
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 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; }