dovecot-1.0: When doing a forced sync, we're not necessarily loc...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Dec 28 20:04:48 EET 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/500a21b449e9
changeset: 5500:500a21b449e9
user: Timo Sirainen <tss at iki.fi>
date: Fri Dec 28 20:04:44 2007 +0200
description:
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.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/maildir/maildir-sync.c | 2 +-
diffs (12 lines):
diff -r 0a4f86976f50 -r 500a21b449e9 src/lib-storage/index/maildir/maildir-sync.c
--- 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 @@ maildir_sync_check_timeouts(struct maild
}
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;
}
More information about the dovecot-cvs
mailing list