[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.94, 1.95

cras at dovecot.org cras at dovecot.org
Mon Oct 4 19:31:53 EEST 2004


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

Modified Files:
	mbox-sync.c 
Log Message:
When we had dirty messages, we kept resyncing the whole mailbox constantly.



Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- mbox-sync.c	3 Oct 2004 16:32:59 -0000	1.94
+++ mbox-sync.c	4 Oct 2004 16:31:51 -0000	1.95
@@ -1258,7 +1258,8 @@
 	}
 
 	ret = mail_index_sync_begin(ibox->index, &index_sync_ctx, &sync_view,
-				    seq, offset, !ibox->keep_recent);
+				    seq, offset, !ibox->keep_recent,
+				    (flags & MBOX_SYNC_REWRITE) != 0);
 	if (ret <= 0) {
 		if (ret < 0)
 			mail_storage_set_index_error(ibox);
@@ -1351,7 +1352,8 @@
 		ret = mail_index_sync_begin(ibox->index,
 					    &sync_ctx.index_sync_ctx,
 					    &sync_ctx.sync_view,
-					    (uint32_t)-1, (uoff_t)-1, FALSE);
+					    (uint32_t)-1, (uoff_t)-1,
+					    FALSE, FALSE);
 		if (ret < 0)
 			mail_storage_set_index_error(ibox);
 		else {



More information about the dovecot-cvs mailing list