[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-sync.c, 1.101, 1.102
tss at dovecot.org
tss at dovecot.org
Tue Apr 17 18:09:16 EEST 2007
Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv29199/index/maildir
Modified Files:
maildir-sync.c
Log Message:
Call sync_notify() once at the end of syncing. Allow accessing mails even
while syncing, as long as it's safe to do so.
Index: maildir-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-sync.c,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -d -r1.101 -r1.102
--- maildir-sync.c 17 Apr 2007 12:41:28 -0000 1.101
+++ maildir-sync.c 17 Apr 2007 15:09:13 -0000 1.102
@@ -1309,6 +1309,9 @@
if (maildir_sync_index_records(sync_ctx) < 0)
ret = -1;
mbox->syncing_commit = FALSE;
+
+ if (mbox->ibox.box.v.sync_notify != NULL)
+ mbox->ibox.box.v.sync_notify(&mbox->ibox.box, 0, 0);
}
if (mbox->dirty_cur_time != 0)
More information about the dovecot-cvs
mailing list