diff src/lib-storage/index/maildir/maildir-sync.c @ 5564:47274663a71c HEAD

Call sync_notify() once at the end of syncing. Allow accessing mails even while syncing, as long as it's safe to do so.
author Timo Sirainen <tss@iki.fi>
date Tue, 17 Apr 2007 18:09:10 +0300
parents 24b751bc0995
children 1c4fd25893bd
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-sync.c	Tue Apr 17 17:07:08 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-sync.c	Tue Apr 17 18:09:10 2007 +0300
@@ -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)