dovecot-1.0: If we did unlocked maildir sync, make sure we sync ...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Dec 1 09:39:25 EET 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/f8ba40601922
changeset: 5473:f8ba40601922
user: Timo Sirainen <tss at iki.fi>
date: Sat Dec 01 09:39:20 2007 +0200
description:
If we did unlocked maildir sync, make sure we sync it later with locking.
diffstat:
1 file changed, 5 insertions(+)
src/lib-storage/index/maildir/maildir-sync.c | 5 +++++
diffs (15 lines):
diff -r d754a1b673fa -r f8ba40601922 src/lib-storage/index/maildir/maildir-sync.c
--- a/src/lib-storage/index/maildir/maildir-sync.c Sat Dec 01 09:31:52 2007 +0200
+++ b/src/lib-storage/index/maildir/maildir-sync.c Sat Dec 01 09:39:20 2007 +0200
@@ -1431,6 +1431,11 @@ static int maildir_sync_context(struct m
return ret;
}
ctx->locked = maildir_uidlist_is_locked(ctx->mbox->uidlist);
+ if (!ctx->locked) {
+ /* make sure we sync the maildir later */
+ ctx->mbox->last_new_mtime = 0;
+ ctx->mbox->last_cur_mtime = 0;
+ }
if (!ctx->mbox->syncing_commit && ctx->locked) {
if (maildir_sync_index_begin(ctx->mbox,
More information about the dovecot-cvs
mailing list