[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.102, 1.103

cras at dovecot.org cras at dovecot.org
Mon Oct 11 17:29:53 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv10355/lib-storage/index/mbox

Modified Files:
	mbox-sync.c 
Log Message:
Make sure nothing is buffered in mbox stream when syncing.



Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- mbox-sync.c	11 Oct 2004 12:22:25 -0000	1.102
+++ mbox-sync.c	11 Oct 2004 14:29:51 -0000	1.103
@@ -1237,6 +1237,9 @@
 		lock_id = 0;
 	}
 
+	/* reopen input stream to make sure it has nothing buffered */
+        mbox_file_close_stream(ibox);
+
 __again:
 	if (changed) {
 		/* we're most likely modifying the mbox while syncing, just



More information about the dovecot-cvs mailing list