diff src/lib-storage/index/maildir/maildir-sync.c @ 2685:52352a5859e4 HEAD

When we had dirty messages, we kept resyncing the whole mailbox constantly.
author Timo Sirainen <tss@iki.fi>
date Mon, 04 Oct 2004 19:31:51 +0300
parents 372d4b90c076
children 166bb07246ef
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-sync.c	Sun Oct 03 20:03:27 2004 +0300
+++ b/src/lib-storage/index/maildir/maildir-sync.c	Mon Oct 04 19:31:51 2004 +0300
@@ -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;
 	}