[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-sync.c, 1.40, 1.41

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/maildir
In directory talvi:/tmp/cvs-serv26001/lib-storage/index/maildir

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



Index: maildir-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-sync.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- maildir-sync.c	5 Sep 2004 21:19:36 -0000	1.40
+++ maildir-sync.c	4 Oct 2004 16:31:51 -0000	1.41
@@ -337,7 +337,7 @@
         ibox->syncing_commit = TRUE;
 	ret = mail_index_sync_begin(ibox->index, &ctx.sync_ctx, &ctx.view,
 				    ibox->commit_log_file_seq,
-				    ibox->commit_log_file_offset, FALSE);
+				    ibox->commit_log_file_offset, FALSE, FALSE);
 	if (ret > 0) {
 		ctx.trans = mail_index_transaction_begin(ctx.view, FALSE);
 
@@ -593,7 +593,8 @@
 	sync_ctx.ibox = ibox;
 
 	if (mail_index_sync_begin(ibox->index, &sync_ctx.sync_ctx, &view,
-				  (uint32_t)-1, (uoff_t)-1, FALSE) <= 0) {
+				  (uint32_t)-1, (uoff_t)-1,
+				  FALSE, FALSE) <= 0) {
 		mail_storage_set_index_error(ibox);
 		return -1;
 	}



More information about the dovecot-cvs mailing list