dovecot: If we did unlocked maildir sync, make sure we sync it l...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Dec 1 09:51:48 EET 2007
details: http://hg.dovecot.org/dovecot/rev/15df8bb27d7a
changeset: 6883:15df8bb27d7a
user: Timo Sirainen <tss at iki.fi>
date: Sat Dec 01 09:51:43 2007 +0200
description:
If we did unlocked maildir sync, make sure we sync it later with locking.
diffstat:
1 file changed, 6 insertions(+)
src/lib-storage/index/maildir/maildir-sync.c | 6 ++++++
diffs (16 lines):
diff -r 19baca289025 -r 15df8bb27d7a src/lib-storage/index/maildir/maildir-sync.c
--- a/src/lib-storage/index/maildir/maildir-sync.c Sat Dec 01 09:51:30 2007 +0200
+++ b/src/lib-storage/index/maildir/maildir-sync.c Sat Dec 01 09:51:43 2007 +0200
@@ -811,6 +811,12 @@ static int maildir_sync_context(struct m
maildir_uidlist_sync_finish(ctx->uidlist_sync_ctx);
}
+ if (!ctx->locked) {
+ /* make sure we sync the maildir later */
+ ctx->mbox->maildir_hdr.new_mtime = 0;
+ ctx->mbox->maildir_hdr.cur_mtime = 0;
+ }
+
if (!ctx->mbox->syncing_commit && ctx->locked) {
/* NOTE: index syncing here might cause a re-sync due to
files getting lost, so this function might be called
More information about the dovecot-cvs
mailing list