[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.133, 1.134

cras at dovecot.org cras at dovecot.org
Wed Dec 29 18:28:34 EET 2004


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

Modified Files:
	mbox-sync.c 
Log Message:
we synced one message more than necessary when we were applying changes.



Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -d -r1.133 -r1.134
--- mbox-sync.c	28 Dec 2004 14:47:19 -0000	1.133
+++ mbox-sync.c	29 Dec 2004 16:28:31 -0000	1.134
@@ -903,7 +903,9 @@
 					return -1;
 			}
 		} else if (sync_ctx->seq >= min_message_count) {
-			mbox_sync_buffer_delete_old(sync_ctx->syncs, uid);
+			/* +1 because we want to delete sync records
+			   from the current UID as well */
+			mbox_sync_buffer_delete_old(sync_ctx->syncs, uid+1);
 			if (buffer_get_used_size(sync_ctx->syncs) == 0) {
 				/* if there's no sync records left,
 				   we can stop */



More information about the dovecot-cvs mailing list